Setup

Serial Modem Host Applications

tags
Serial Modem Host Applications
  1. Open Memfault from nRF Cloud:

    1. Log in to nRF Cloud.
    2. Click Memfault in the left sidebar.
    3. This opens the Memfault project linked to your account.
  2. Upload the firmware symbol file - Memfault needs the build's zephyr.elf to decode crash addresses into function names and line numbers. Upload it once per firmware build, before or as soon as devices start reporting data:

    1. In the Memfault UI, navigate to Software.
    2. Select Symbol Files.
    3. Click on Upload Symbol File.
    4. Select build/zephyr/zephyr.elf from your west build directory (the default output when building from applications/91m1_ppp).

    Alternatively, upload from the command line with the Memfault CLI:

    memfault \
      --org-token <token> \
      --org <org> \
      --project <project> \
      upload-mcu-symbols build/zephyr/zephyr.elf
    
  3. Verify data is flowing - After the device connects to nRF Cloud, periodic Memfault uploads run in the background (CONFIG_MEMFAULT_PERIODIC_UPLOAD). Look for:

    <inf> mflt: Periodic background upload scheduled - initial delay=... period=...
    

    To trigger a manual upload from the shell:

    uart:~$ mflt test heartbeat
    uart:~$ mflt post_chunks