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

  • Hi Torbjørn,
    Thanks for the reply. Yes, I was planning to use the USB on the Thingy52, but silly me did not read the documentation or looked at the schematics. Thank you for clarifying that my planned USB logging is not possible on the Thingy 52 hardware. 

    Sorry to keep you busy with my issue. I should have checked before.

    All the best,

    Michael

  • Hi Michael

    No worries, it happens to the best of us Slight smile

    The Thingy53 and Thingy91 have proper USB support, if you ever switch to one of them. 

    How to handle it best on the Thingy52 I don't know. Potentially you can still store it in flash directly, and use a debugger to read it out. Or connect to the UART interface and add some function to dump the logs over UART. 

    Best regards
    Torbjørn

Related