I compiled the ble_app_cts_c project of the SDK12 using the Segger Embedded Studio having as target the PCA10040 board (S132 stack). After spending some time to convert the Keil project to a Segger project, I was able to compile it without any error or warning. But somethings is not right, because whenever I try to run the program, it crashes in the page_identify function of the fds.c file (which is called from peer_manager_init). The debbuger looses the tracking in the first line of this function ...
My suspicious is that the project is not correctly configured on the Segger IDE, more precisely with the memory settings. I already tested other projects with the Keil IDE and this problem doesn't happen. Unfortunately the projects that use whitelist exceed the limit of the 32K of the Keil IDE.
The section placement macros are defined this way: FLASH_START=0x1f000 RAM_START=0x20002128
And the memory_map is defined this way: <root name="nRF52832_xxAA"> <MemorySegment name="FLASH" start="0x00000000" size="0x00080000" access="ReadOnly" /> <MemorySegment name="RAM" start="0x20000000" size="0x00010000" access="Read/Write" /> </root>
I also added some entries in the flash_placement file to surpass a linkage error: <ProgramSection alignment="4" load="Yes" runin=".fs_data_run" name=".fs_data" /> ... <ProgramSection alignment="4" load="No" name=".fs_data_run" address_symbol="__start_fs_data" end_symbol="__stop_fs_data" />
Have you any ideia about where is the problem?
Thanks for your attention,