This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to load hex to nRF51 with openocd ?

Due to limited budget, I have to use STLINK/V2 to flash code into nRF51822. I have been through steps of how to setup OpenOCD/STLINK/V2/nRF51822 in Ubuntu. After mass erase, I have to flash softdevice back to nRF51822. But now I stuck on loading hex file in telnet. BTW, I have download proper version of SD110-v5.2.1 for silicon version 1....

> halt

> reset init
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0xfffffffe msp: 0xfffffffc

> flash banks
#0 : nrf51.flash (nrf51) at 0x00000000, size 0x00040000, buswidth 1, chipwidth 1
#1 : nrf51.uicr (nrf51) at 0x10001000, size 0x00000100, buswidth 1, chipwidth 1
>
> flash write_image s110_nrf51822_5.2.1_softdevice.hex 0
couldn't open s110_nrf51822_5.2.1_softdevice.hex

> flash write_image ./s110_nrf51822_5.2.1_softdevice.hex 0
couldn't open ./s110_nrf51822_5.2.1_softdevice.hex

The softdevice*.hex is just in the current path. How can I load it into Telnet to flash it?

Related