On 16/03/2014 23:09, Andreas Fritiofson wrote:
On Sun, Mar 16, 2014 at 10:52 PM, Angelo Dureghello
<[email protected] <mailto:[email protected]>> wrote:
i am trying to program stm32f405 with a cheap stlink-V2, without
success.
I attach the log, maybe someone can help me.
> flash write_bank 0 bin/gasc.bin 0
jtag status contains invalid mode value - communication failure
error waiting for target flash write algorithm
It's always safest to reset the target before writing flash to get it
into a known state.
Thanks, solved,
there is an errata out for stm32f405, says device can't be programmed
without NJTRST connected.
So i connected (was simpler) the NRST the jtag NRST pin, and all works
perfect.
> flash write_bank 0 bin/gasc.bin 0
device id = 0x10016413
flash size = 1024kbytes
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x20000042 msp: 0x20020000
wrote 8696 bytes from file bin/gasc.bin to flash bank 0 at offset
0x00000000 in 0.230195s (36.891 KiB/s)
>
Many thanks, and sry to disturbed the devel list.
Regards
angelo
/Andreas
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel