cancel
Showing results for 
Search instead for 
Did you mean: 

Problem: STM32F207 + Olimex OpenOCD Programming first time fail

katzinium
Associate
Posted on December 14, 2011 at 15:42

hi

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?
3 REPLIES 3
rosarium
Associate II
Posted on December 15, 2011 at 06:37

Plz check if there is some patch files missing for stm32f207 for that debugger.

Also there could be some boot problem. Change your boot option and give a reset to your board and recheck with the original boot option.

domen23
Associate II
Posted on December 15, 2011 at 13:04

I think I had some similar problem, which I solved by adding

reset_config trst_and_srst

to my config
rosarium
Associate II
Posted on December 16, 2011 at 05:10

Thts gud.