Hello.
I just started using nRF52840-DK board with SEGGER Embedded Studio and I'm trying to use it to save data in a micro SD through an adapter. I tested it with the Fatfs example provided by Nordic and it works as intended. My next step is to reduce the code to the minimun needed to keep it working, removing not essential libraries and functions.
This example contains the following libraries:
#include "nrf.h" #include "bsp.h" #include "ff.h" #include "diskio_blkdev.h" #include "nrf_block_dev_sdc.h" #include "nrf_log.h" #include "nrf_log_ctrl.h" #include "nrf_log_default_backends.h"
By now, I removed all the log ones, and I'm testing the first five ones, but they are really large. I assume that nrf.h is required because of the board and also ff.h because of the micro SD, but there are many functions on the ff.h one and probably most of them aren't required to just write on the SD. I don't know about the other three ones yet.
Has anyone tried this before? If yes, could you provide me with some help or guidance on which functions/libraries can I safely remove or reduce as much as possible?
Thanks in advance