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

ST-LINK NRF51822 and OPENOCD

Hello Everyone! I want to program nrf51822. I'm using open OCD 0.9. I created openocd.cfg file:

source [find interface/stlink-v2.cfg]
transport select hla_swd
set WORKAREASIZE 0x4000
source [find target/nrf51.cfg]

and started openocd-x64-0.9.0-dev-141103193059.exe

After it started daemon. I connected to it via telnet 127.0.0.1 port - 4444.

Prompt this commands:

> flash banks
#0 : nrf51.flash (nrf51) at 0x00000000, size 0x00040000, buswidth 1, chipwidth 1
#1 : nrf51.uicr (nrf51) at 0x10001000, size 0x000000fc, buswidth 1, chipwidth 1
> halt
target state: halted
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x81000003 pc: 0x000141b8 msp: 0x20003c70
> flash write_image blinky_gcc_xxaa.hex 0
Failed to write sector @ 0x00000800
error writing to flash at address 0x00000000 at offset 0x00000000
in procedure 'flash'

What's a probplem?

Parents
No Data
Reply Children
No Data