Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF5 SDK V12.3 compiler problem

Dear All. I have question about compiler of nRF5_SDK_V12.3. I compile the example BLE_peripheral\experimental_ble_app_blinky by gnu arm(latest version). It can work on nRF51 DK board. but when i download it to ISP130301. It couldn't work. the ISP130301 use the NRF51822 chips. if i use the arm compiler(keil) ,The firmware aslo can work on ISP130301.how can i solve such problem. i try to use gdb to debug it. but the the following error is display on the screen:

(gdb) load
Loading section .text, size 0x2e60 lma 0x1b000
Loading section .ARM.exidx, size 0x8 lma 0x1de60
Loading section .data, size 0x78 lma 0x1de68
Start address 0x1d854, load size 12000
Transfer rate: 5859 KB/sec, 4000 bytes/write.
(gdb) n
Single stepping until exit from function Reset_Handler,
which has no line number information.
SystemInit () at ../../../../../../components/toolchain/system_nrf51.c:72
72 if (is_manual_peripheral_setup_needed())
(gdb) n
89 if (is_peripheral_domain_setup_needed()){
(gdb) n
97 }
(gdb) n
0x0001d87c in Reset_Handler ()
(gdb) n
Single stepping until exit from function Reset_Handler,
which has no line number information.

Program received signal SIGTRAP, Trace/breakpoint trap.
0xfffffffe in ?? ()
(gdb) n
Cannot find bounds of current function

can anyone give some suggestion ? Thank you!

Parents Reply
  • Hi bojorn-spockeli:    

        i use ozone to debug the compile code.  i set the break point at main(). then select debug ->download and reset target .but it couldn't stop at the breakpoint. how can i do in next step?

    I review the schematic of this module. Then i find that the chip of module is nrf51822xxaa, but the chip of example for SDK is nrf5151422xxac. i check the datasheet. the aa chip only have 16k RAM. but ac chip have 32k ram. should i change the ld file about the example. could you give me some suggestion? 

    Thank you!

Children
No Data
Related