Log to nrf52 thingy internal flash

I am working on a prototype using the nRF Connect SDK v2.1.0 on the nRF52 Thingy platform.

For my prototype, I need to store normal log output on the internal flash of the nRF52 Thingy in FAT format. The reason behind this is: I will put my Thingys in a testing environment to collect data. After some days, I want to collect the Thingys and read the log data via USB.

What is the best way to implement that?

I have been trying the https://docs.zephyrproject.org/latest/samples/subsys/usb/mass/README.html#fat-fs-example, but the FLASH configuration does not work (not on the Thingy and not on the nRF52840DK platform).

Best regards,

Michael

Parents
  • When running the USB Mass sample in FLASH configuration on the nRF52840DK, I get the following RTT logs:

    [00:00:00.254,333] <err> usb_msc: Storage init ERROR !!!! - Aborting USB init
    [00:00:00.258,514] <err> fs: fs mount error (-5)
    [00:00:00.258,544] <err> main: Failed to mount filesystem
    [00:00:00.258,728] <inf> main: The device is put in USB mass storage mode.

Reply
  • When running the USB Mass sample in FLASH configuration on the nRF52840DK, I get the following RTT logs:

    [00:00:00.254,333] <err> usb_msc: Storage init ERROR !!!! - Aborting USB init
    [00:00:00.258,514] <err> fs: fs mount error (-5)
    [00:00:00.258,544] <err> main: Failed to mount filesystem
    [00:00:00.258,728] <inf> main: The device is put in USB mass storage mode.

Children
No Data
Related