Section `_RTT_SECTION_NAME' can't be allocated in segment 2

I'm getting the following notice/warning/error when building my application (nrfsdk 2.9.0 w/ sysbuild, nrf9151dk board):

/usr/local/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-objcopy: /Users/kon/Workshop/GitHub/AgX/agmuster-workspace/agmuster/build/agmuster/zephyr/st0gBFbh: section `_RTT_SECTION_NAME' can't be allocated in segment 2
LOAD: .ramfunc _RTT_SECTION_NAME bss noinit
image.py: sign the payload
image.py: sign the payload
[1/10] Performing build step for 'mcuboot'
ninja: no work to do.
[10/10] Generating ../merged.hex

We are using this config. And the error disappears if I set SEGGER_RTT to n.

CONFIG_USE_SEGGER_RTT=y
CONFIG_SHELL_BACKEND_RTT=y
CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=4096

RTT seems to be working when I flash. Is this an expected message? If not, what's the proper way to address?

Thanks,

Konstantin

Parents Reply
  • I was able to reproduce the warning thanks to the project you provided, but I have not been able to determine why. So far I’ve found that the error does not occur if I configure the RTT module to not use the named linker section (_RTT_SECTION_NAME) by selecting CONFIG_SEGGER_RTT_SECTION_NONE, or if I disable CONFIG_MEMFAULT. However, I don't see why the warning goes away when memfault is disabled. I tried comparing the linker scripts and map files between these builds, but was unable to spot any relevant differences. 

      , could you please confirm if you are using Memfault in your project as well? I don't believe the issue is directly related to memfault, but would be good if we could rule out that possibility. 

Children
Related