Development environment :
ARM-GCC version - "gcc-arm-none-eabi-6-2017-q2-update"
nRF SDK version - nRF5_SDK_15.2.0_9412b96
nRF Mesh SDK version - nrf5SDKforMeshv310src
Platform - nrf52840_xxAA
Problem :
cmake command used : cmake -DBUILD_BOOTLOADER=1 -DCMAKE_BUILD_TYPE=MinSizeRel -DBOOTLOADER_DEBUG_ENABLE=1 -DPLATFORM=nrf52840_xxAA ..
I have not done any changes in nRF5_SDK_15.2.0_9412b96 and nrf5SDKforMeshv310src SDKs. I am building it as it is.
I am trying to build nRF Mesh bootloader with debug option enabled using above command but I am getting below error :
.....
.....
[ 3%] Building ASM object mesh/bootloader/CMakeFiles/mesh_bootloader_serial_gccarmemb_nrf52840_xxAA.dir/home/nishants/Downloads/Tar_Files/Nordic/nRF5_SDK_15.2.0_9412b96/modules/nrfx/mdk/gcc_startup_nrf52840.S.obj
[ 3%] Linking C executable mesh_bootloader_serial_gccarmemb_nrf52840_xxAA.elf
/usr/local/gcc-arm-none-eabi-6-2017-q2-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld: mesh_bootloader_serial_gccarmemb_nrf52840_xxAA.elf section `.text' will not fit in region `FLASH'
/usr/local/gcc-arm-none-eabi-6-2017-q2-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld: region FLASH overflowed with .data and user data
/usr/local/gcc-arm-none-eabi-6-2017-q2-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 2096 bytes
collect2: error: ld returned 1 exit status
mesh/bootloader/CMakeFiles/mesh_bootloader_serial_gccarmemb_nrf52840_xxAA.dir/build.make:634: recipe for target 'mesh/bootloader/mesh_bootloader_serial_gccarmemb_nrf52840_xxAA.elf' failed
make[2]: *** [mesh/bootloader/mesh_bootloader_serial_gccarmemb_nrf52840_xxAA.elf] Error 1
CMakeFiles/Makefile2:209: recipe for target 'mesh/bootloader/CMakeFiles/mesh_bootloader_serial_gccarmemb_nrf52840_xxAA.dir/all' failed
make[1]: *** [mesh/bootloader/CMakeFiles/mesh_bootloader_serial_gccarmemb_nrf52840_xxAA.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Am I missing anything?
Ho do I build mesh bootloader with debug option enabled?
Regards,
Nishant.