We successfully built the mesh bootloader, but want to get RTT working with the bootloader logs inside SEGGER.
We were following this two posts post1 post2 to achieve our goal.
After activating the -DBOOTLOADER_DEBUG_ENABLE=ON option on ninja and changing the declarations in the SEGGER_RTT.c file to
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;
I need to know where I can edit the SECTIONs used above. I think they have to be defined in a linker file, with the *.ld extension. For reference we are using a modified light switch client example from mesh sdk 3.1.0, that used softdevice version 6.1.0. We recently updated the project to use mesh SDK 3.2.0, and changed on the project definitions to use the 6.1.1 version of the softdevice in the additional load file option.
I have been searching around to pinpoint which .ld file the project uses. I supposed it was one inside the linker folder inside the project folder, but adding the SECTION definitions to the most recent .ld file does nothing, I get a 'region `UNPLACED_SECTIONS' overflowed by 1272 bytes' message regardless of the definition of the sections.