Based on https://github.com/zephyrproject-rtos/example-application , this provides a minimal reference for Memfault integration.
Note: this example can also target other boards and should work normally- for example
nrf52840dk_nrf52840. It's primarily tested on themps2/an385board, which is also the default.
After setting up a zephyr development environment (https://docs.zephyrproject.org/latest/getting_started/index.html), you can run the following commands to test the application:
# initialize this project ❯ west init --local qemu-app ❯ west update # build and run the target program ❯ west build qemu-app ❯ west build --target run *** Booting Zephyr OS build zephyr-v4.0.0 *** [00:00:00.000,000] <inf> mflt: GNU Build ID: 4ffb5879ed5923582035133086015bbf65504364 [00:00:00.000,000] <inf> main: 👋 Memfault Demo App! Board mps2/an385 [00:00:00.000,000] <inf> mflt: S/N: DEMOSERIAL [00:00:00.000,000] <inf> mflt: SW type: zephyr-app [00:00:00.000,000] <inf> mflt: SW version: 1.0.0+6c108c40f1 [00:00:00.000,000] <inf> mflt: HW version: mps2/an385 uart:~$