Skip to main content
stm322
Associate III
Sep 5, 2008 12:57 PM UTC
Question

program doesn t start after write

Posted on September 05, 2008 at 14:57

program doesn t start after write

    This topic has been closed for replies.

    2 replies

    stm322
    stm322Author
    Associate III
    May 17, 2011 10:44 AM UTC
    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
    stm322Author
    Associate III
    May 17, 2011 10:44 AM UTC
    Posted on May 17, 2011 at 12:44

    Problem resolved.

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

    Thanks anyway.