This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Need to press Reset button after programming

Other Parts Discussed in Thread: ENERGIA, SEGGER

Hello everyone,

I just remembered something. This was from when i used Stellaris (not Tiva) with Energia compiler. I remember that everytime i programmed i needed to press the reset button. Why isn't this necessary anymore with the Tiva?

Also, remembered this because of something that happens. I have a code to control RGB LEDs with the DMA. Now sometimes i simply program and everything is fine, but others the LEDs are erratic and i need to press the reset button.

I am using IAR Workbench. What can be doing this? Maybe the IAR doesn't reset the MCU right?

Btw, i keep forgetting to do that but, do you advise always initializing a peripheral like this, or the reset should get all peripherals to default state?

SysCtlPeripheralDisable
SysCtlPeripheralReset
SysCtlPeripheralEnable

  • If the reset sequence behaves/performs, "normally" many/most of the MCU registers should behave as listed w/in the MCU manual.  (many/most such registers note their default/reset conditions)

    That said - reliance upon full/proper reset - especially w/in a noisy environment - may not prove most robust nor ideal.  In that case - your first 2 code entries (Disable & Reset) are likely superior.  I'd not "bundle" those w/ (Enable) - as your code shows - saving that function instead for the moment when the addressed peripheral is to be activated...

    Segger indeed offers a substantially, "reduced price" J-Link for students/educators.  We use IAR exclusively (w/the J-Link) and never/ever have to attend to reset as you describe...

  • Luis Afonso said:
    I just remembered something. This was from when i used Stellaris (not Tiva) with Energia compiler. I remember that everytime i programmed i needed to press the reset button. Why isn't this necessary anymore with the Tiva?

    That is not specific to the TIVA series, it's in the Target options in µVision, tab Utilities, Flash Download, there you have the option  "Reset and Run" after programing the device(I guess that in the past, when using Stellaris, this was not checked).

    I think that when your device has a good reset(hardware, be it an external chip or r/c combination, I would not worry about it). If you still have erratic behaviour, I would look elsewhere(code/hardware).

  • hi marc,

    thanks. I just found it weird that instead of being stopped, it simply was having a erratic behavior.

    The code was made for a application that requires good timing. It was made by timers and DMA transfers so it's possible that IAR wasn't holding the code right and made that erratic behavior.

  • Difficult to say what's going wrong in that specific occasion, you may have a crystal oscillator/PLL not being stable after a warm reset/start-up, screwing up the timer/DMA transfer...

  • Well i was asking for some info. And i got some :p

    The rest is to specific. Thanks Marc