AnsweredAssumed Answered

Problem: STM32F207 + Olimex OpenOCD Programming first time fail

Question asked by hirn.harry on Dec 14, 2011
Latest reply on Dec 16, 2011 by rosarium

i got a strange problem and i dont know how to fix it...
my projekt contains a board with the stm32f207 and i want to programm it with the olimex arm-urb-tiny-h using openocd 0.6.0.

i program it in two stages: first stage the bootloader and second stage the main rom.
the bin files are ok and running.

the problem is:
if i got a brand new board with a never before programmed cpu i can start programming it, verification of the first part passes and gets verified. after that the programming of the main code starts and completes with "wrote xy bytes ...". after that some jtag commands and then "error: timed out while waiting for target halted".

the cpu does not run after this. unpowering it and powering again and repeating the programming will succeed with both bins verified and the cpu runs. and there will never be the error again...

bur thats a) no solution for industrial use now and b) i would like to know why this is and how i can fix it...

any ideas?