bluetooth lowenergy - Nordic nrf51822 and S130 never gets to my application code -


i trying run nrf51822 chip using emblocks , openocd, debugger interface st-link discovery board, supports swd.

when program blank device works fine, program flow reaches main function. however, when flash s130, program flow never reaches main function (i don't have other application code).

i have checked assembly code , s130 stuck on (arm asm incoming) wfe , b.n instruction, knowledge, seems waiting interrupt, event or wake happen before doing anything... expected behaviour or doing wrong?

the pins have connected swd lines (2 pins) gnd , vdd (3 volts).

i solved long time ago, forgot post solution. problem script file provided emblocks, needed modified.

i got working modifying sections in linker file this:

memory { softd (rx) : origin = 0x00000000, length = 0x20000 flash (rx) : origin = 0x00020000, length = 0x20000 ram (rwx) : origin = 0x20002800, length = 0x1800 } 

to this:

memory { softd (rx) : origin = 0x00000000, length = 0x1c000 flash (rx) : origin = 0x0001c000, length = 0x24000 ram (rwx) : origin = 0x20002800, length = 0x1800 } 

now program flow reaches main.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -