Hello,
first I would like to "set the scene".
* hardware : cutsom board
* mcu : nrf52832
* nRF5_SDK : nRF5_SDK_17.0.2_d674dde
* software : mbr + bootloader + softdevice "s112_nrf52_7.2.0_softdevice.hex" + application
* bootloader : nrf5 sdk bootloader.
Hope I have forgottent no information.
Until now we worked with segger ide. We use build_diego_firmware.bat to create an .hex file with the bootloader+sdk+app
then when we work on our application, we use segger ide application project and we can reload and debug our application without regenerate the global.hex neither reloaded bootloader nor sdk.
Here everything goes right.
Now we want to migrate with a GCC + Eclipse environement as described here : https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/development-with-gcc-and-eclipse
So we use :
GNU Tools for ARM Embedded Processors (arm-none-eabi-gcc) : C:\Program Files (x86)\GNU Tools ARM Embedded\9 2019-q4-major
and we use make from C:\cygwin64\bin
we setup Eclipse as mentionned in the blog : https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/development-with-gcc-and-eclipse
Compilation is ok.
We load and debug with Jlink and here we have a problem.
1- I have created and loaded first the nrf5 bootloader project with gcc and Eclipse :
* compilation is OK
* debug with debug information are available and I go till nrf_bootloader_app_start_final(start_addr);
2- now I have created and loaded my application software
* compilation is OK
* debug is not ok : Break at address "0xb1134b04" with no debug information available, or outside of program code
And it seems that the code is not working.
So my questions :
1- do I need to use "build_diego_firmware.bat" to regenerate an global .hex file with bootloader, sdk and app ?
2- can I use the "s112_nrf52_7.2.0_softdevice.hex" from \components\softdevice\s112\hex or this .hex file shall be regenerate with gcc ? and so how?
3- How to correct this error : Break at address "0xb1134b04" with no debug information available, or outside of program code and work with an software application with Eclipse as I do before with SES ?
Please give me details as it is not easy.
Eclipse :
Eclipse IDE for Embedded C/C++ Developers (includes Incubating components)
Version: 2021-03 (4.19.0)
Build id: 20210312-0638
NOTE: it is important for us to do like this because of our customer request. We do not continue with SES and have to migrate with a ARM gcc tools.
I use eclipse as ide because it is easy for me to debug with a graphical ide.
Do not hesitate if I miss some essential information.
Please, be nice and give me as detailled steps as possible.
Best regards
Mikael