|
From: Luis R. <lfr...@gm...> - 2014-07-17 09:51:10
|
Hi all,
I'm trying to use openocd (dev version) to flash Nucleo F030R8, F302R8.
Both are falling for for different reasons.
For the F030R8 I can't even run openocd:
./src/openocd --search tcl/ -f board/st_nucleo_f030r8.cfg
Open On-Chip Debugger 0.9.0-dev-00098-ge03eb89 (2014-07-17-11:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : This adapter doesn't support configurable speed
Error: read version failed
in procedure 'init'
in procedure 'ocd_bouncer'
in procedure 'transport'
in procedure 'init'
-------
For the F302R8 it runs fine with (I used config for 334r8 because there was
none for 302):
./src/openocd --search tcl/ -f board/st_nucleo_f334r8.cfg
But if I:
./src/openocd --search tcl/ -f board/st_nucleo_f334r8.cfg -c init -c "reset
halt" -c "flash probe 0" -c "stm32f2x mass_erase 0" -c "flash write_image
erase aa.hex 0x08000000" -c "reset" -c shutdown
Open On-Chip Debugger 0.9.0-dev-00098-ge03eb89 (2014-07-17-11:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : This adapter doesn't support configurable speed
Info : STLINK v2 JTAG v19 API v2 SWIM v3 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.259279
Info : stm32f3x.cpu: hardware has 6 breakpoints, 4 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1ffff198 msp: 0x20001258
Info : device id = 0x10016439
Warn : Cannot identify target as a STM32 family.
Error: auto_probe failed
in procedure 'flash'
Anyone has any idea?
|