THis may have an obvious answer to an experienced embedded programmer but I do not qualify to be that. So I have a piece of working code that runs on the nRF52840 DK and it has several NRF_LOG_* method calls. Now I want to flash the nRF52840 dongle with the built HEX file.
Clearly, I want to remove other methods like the button press handlers that do not exist on the dongle. So I do a conditional compile on a USE_DK statement to exclude or include pieces of the relevant code. The most irritating of these to handle is the logging as there are so many and they are distributed all over the place.
So can I leave these log statements? Do I need to play with the sdk_config.h file? So I need to conditionally exclude these statements when not using the DK? The logging does add a lot of baggage to the code size.
I am using SoftDevice (s140 7.2.0 API) for all Bluetooth and flash memory writes/reads and handling app events using the sd_ble_evt_get() approach. The SDK is used for timers, clocks, and board support.