Environment:
Segger Embedded Studio
nRF52840
S140
Windows
nRF 5 SDK 17
Hi,
I'm developing a device for a small side project. I need to get logs in both the bootloader and main appllication.
I successfully got logs in DFU when I only flashed the secure_bootloader_debug example and got logs in the main application if I flashed the application by itself.
However when I merged the bootloader with the application, it appeared that I only got logs in the application.
I've searched this forum and found a similar problem here.
I tried adding these lines to SEGGER_RTT.c
static char __attribute__((section(".rtt_ac_up"))) _acUpBuffer [BUFFER_SIZE_UP]; static char __attribute__((section(".rtt_ac_down"))) _acDownBuffer[BUFFER_SIZE_DOWN]; SEGGER_RTT_CB __attribute__((section(".rtt_segger"))) _SEGGER_RTT;
However I get a compile Error in Segger when I want to compile secure_bootloader_debug from the examples in the SDK again:
Output/Release/Exe/secure_bootloader_ble_s140_pca10056.elf section `.rtt_ac_down' will not fit in region `UNPLACED_SECTIONS' region `UNPLACED_SECTIONS' overflowed by 4232 bytes
Is this the correct way of doing this? I was unable to find any other problems like mine on this forum and a solution to my above problem. Thanks for any guidance/ help.