cancel
Showing results for 
Search instead for 
Did you mean: 

program doesn t start after write

stm322
Associate II
Posted on September 05, 2008 at 14:57

program doesn t start after write

2 REPLIES 2
stm322
Associate II
Posted on May 17, 2011 at 12:44

Hello everybody,

I'm using openOCD with Olimex ARM-USB-OCD to write hex file to STM32 flash on a STM3210E-EVAL board.

The following script is used.

wait_halt

sleep 10

stm32x mass_erase 0

sleep 10

flash write_image ./MyDemo/MyDemo.hex 'ihex'

sleep 100

reset run

Everything works fine. The hex file is properly written in the flash.

The only problem is, the uC doesn't start automatically. Even by pressing the reset button on the EVAL board. The only way to make it start is to power cycle the board.

Any idea where that can come from and how I can resolve that?

Thanks in advance for your help.

stm322
Associate II
Posted on May 17, 2011 at 12:44

Problem resolved.

By setting up a debugger, I can now run and stop.

Thanks anyway.