This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NrF52810 can't write a program with ST-Link V2

Hello, 

I did developed custom board with Nrf52810 and now I have problem with flashing the chip. 
I'm trying to make the programming with ST-LINKv2 with SWD and using Arduino IDE. 
The connection is good, because I don't get any errors and when I upload the code everything seams to be ok. But after that the chip did nothing, like nothing. I try with couple of codes and even simple examples like LED blinking are not working. Like the program was never write to the chip. 
Here is the log from the console. 

Sketch uses 2104 bytes (0%) of program storage space. Maximum is 409600 bytes.
C:\Users\Tencho\AppData\Local\Arduino15\packages\sandeepmistry\tools\openocd\0.10.0-dev.nrf5/bin/openocd.exe -d2 -f interface/stlink-v2.cfg -c transport select hla_swd; set WORKAREASIZE 0x4000; -f target/nrf52.cfg -c program {{C:\Users\Tencho\AppData\Local\Temp\arduino_build_429980/Blink.ino.hex}} verify reset; shutdown; 
Open On-Chip Debugger 0.10.0-dev-00254-g696fc0a (2016-04-10-10:13)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
0x4000
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 10000 kHz
Info : Unable to match requested speed 10000 kHz, using 4000 kHz
Info : Unable to match requested speed 10000 kHz, using 4000 kHz
Info : clock speed 4000 kHz
Info : STLINK v2 JTAG v38 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.273458
Info : nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints
nrf52.cpu: target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x000008e4 msp: 0x20000400
** Programming Started **
auto erase enabled
Warn : Unknown device (HWID 0x0000016e)
Warn : using fast async flash loader. This is currently supported
Warn : only with ST-Link and CMSIS-DAP. If you have issues, add
Warn : "set WORKAREASIZE 0" before sourcing nrf51.cfg to disable it
nrf52.cpu: target state: halted
target halted due to breakpoint, current mode: Thread 
xPSR: 0x61000000 pc: 0x2000001e msp: 0x20000400
wrote 4096 bytes from file C:\Users\Tencho\AppData\Local\Temp\arduino_build_429980/Blink.ino.hex in 0.177219s (22.571 KiB/s)
** Programming Finished **
** Verify Started **
nrf52.cpu: target state: halted
target halted due to breakpoint, current mode: Thread 
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20000400
verified 2224 bytes in 0.021066s (103.099 KiB/s)
** Verified OK **
** Resetting Target **
shutdown command invoked

I did reflash the programmer with latest ST firmware and still nothing. 

Please for advises how can I resolve this problem and make it working with ST-Link V2. I do find that other programmers like J-Link will work better and maybe that is the solutions, but it's too expensive and the cheaper alternatives are out of stock everywhere, so I can't get one sooner. 

Parents Reply Children
No Data
Related