1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

soft reset doesn't work

Discussion in 'Embedded' started by wanwan, Dec 11, 2006.

  1. wanwan

    wanwan Guest


    can I please have some debug tips on this problem?

    I'm using an ARM7 microcontroller (TI TMS470). My program seems to run
    bug free when it's being loaded by the IDE to flash. When I press the
    reset button on the development board, it stop running.

    I've tried loading an example code to flash and testing it with the
    reset. It runs from the beginning of the program after reset.

    Thanks for helping.
    wanwan, Dec 11, 2006
    1. Advertisements

  2. wanwan

    Ico Guest

    You are providing much info, so here are some wild guesses...

    There's quite some difference between a hard- and a soft-reset. A soft
    reset often resets only the CPU core, leaving all memory contents and
    peripherals in their current state. If your code expects to find the
    hardware nicely reset and initialized, this might be your problem.

    You said your program "stops running". I'm quite sure it didn't stop
    running, but instead it's doing something else then you expected. It's
    important to find out exactly *what* your CPU is doing after you pressed
    the reset button. If you don't have any ICE or debugging tools around,
    switching LEDS or printing stuff to the UART is a good way of tracing
    your program flow.
    Ico, Dec 12, 2006
    1. Advertisements

  3. Quite likely the IDE version of the reset code is different from the
    standalone flash version. One has to provide an IDE (debug) interface, the
    other doesn't.

    I wouldn't expect an IDE version of an app to run correctly after a hardware
    reset. I *would* expect it to resync with the IDE, though, but perhaps with
    no application code.

    Steve at fivetrees, Dec 12, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.