region `RAM' overflowed by 56296 bytes

I add new board am_nrf52832 first. Than I use west to build. But it failed to build due to region `RAM' overflowed by 56296 bytes. The following are build log messages.

D:\ncs\v2.3.0\nrf\applications\nirs>west build ‐b am_nrf52832
ERROR: source directory ‐b does not exist
FATAL ERROR: refusing to proceed without --force due to above error

D:\ncs\v2.3.0\nrf\applications\nirs>west build -b am_nrf52832
[0/22] Performing build step for 'mcuboot_subimage'
ninja: no work to do.
[4/22] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
cmd.exe /C "cd . && D:\ncs\toolchains\v2.3.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf && cmd.exe /C "cd /D D:\ncs\v2.3.0\nrf\applications\nirs\build\zephyr && "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E echo ""
d:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: zephyr\zephyr_pre0.elf section `bss' will not fit in region `RAM'
d:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: region `RAM' overflowed by 56296 bytes
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE' --build 'D:\ncs\v2.3.0\nrf\applications\nirs\build'

Parents Reply Children
No Data
Related