|
From: Angelo D. <ang...@gm...> - 2014-03-16 21:52:33
|
Dear all,
i am trying to program stm32f405 with a cheap stlink-V2, without success.
I attach the log, maybe someone can help me.
Open On-Chip Debugger 0.8.0-dev-00381-gf91390f (2014-03-14-22:58)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : This adapter doesn't support configurable speed
Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.208404
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08001a20 msp: 0x20020000
Info : accepting 'telnet' connection from 4444
?? telnet localhost 4444
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> flash probe 0
device id = 0x10016413
flash size = 1024kbytes
device id = 0x10016413
flash size = 1024kbytes
flash 'stm32f2x' found at 0x08000000
> flash write_bank 0 bin/gasc.bin 0
jtag status contains invalid mode value - communication failure
error waiting for target flash write algorithm
error writing to flash at address 0x08000000 at offset 0x00000000
in procedure 'flash'
jtag status contains invalid mode value - communication failure
Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in
100ms
jtag status contains invalid mode value - communication failure
Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in
300ms
jtag status contains invalid mode value - communication failure
Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in
700ms
jtag status contains invalid mode value - communication failure
Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in
1500ms
jtag status contains invalid mode value - communication failure
Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in
3100ms
jtag status contains invalid mode value - communication failure
Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in
6300m
May be the fact i didn't connected NJTRST pin to the programmer
(should'n be mandatory) ?
many thanks
angelo
|