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.

Soft reset & Hard reset & Restart



Hi all,

I want to ask about  the function of Soft reset & Hard reset & Restart?

  

(1) Soft reset & Hard reset:

I find some explain in web,but i can't understand what's the difference between soft , hard reset and debug button .

(2)Restart:

This button is only have a function -> go back the code first column?

Thanks.

BR,

LEO

  • Hi Leo,

    This is the best thread to make you understand between these two options:

    Regards,

    Gautam

  • Hi , Gautam:

    I have been seen this article,but still have some questions.

    (1)Is "reloading code" is the same as "press debug button" ?

    (2)This Restart button is only have a function -> go back the code first column?

    BR.

    LEO

  • You're absolutely right in both the occasions :)

    LEE YULIN said:
    go back the code first column?

    go to the "code-entry" point.

    Regards,

    Gautam

  • Hi Lee,
    1. Debug button generally will reload the code (mass erase the flash and program it) with default options and also other functionality like loading only symbols (with out erasing and reloading the code in to the target hardware) can be found here processors.wiki.ti.com/.../MSP430_-_Connecting_to_a_running_target

    2. Restart will force the PC to the "entry point" of the application and will bypass executing the boot ROM code. If you are trying to debug issues when an application runs stand-alone, it is recommended to not use restart since it bypasses the boot ROM and the jump to flash. You can find more debugger options like "restart or program load during reset" in the following link, processors.wiki.ti.com/.../C2000_Getting_Started_with_Code_Composer_Studio_v5
  • Dear Sai:

    Thank you for your reply.

    About Soft reset & Hard reset:

    (1)Reset will not erase flash and debug button will ? If i modify register in LDC1000 sensor which connect to launchpad after press debug button first ,

         which one should i press(reset or debug)?

        I don't know what's the occasion should i press the button of them. could you give my a example?

    (2) What's the difference between hard reset and debug? Is hard reset and debug are the same?

    Sorry my English is not well.

    BR.
    LEO

  • Hi Leo,

    LEE YULIN said:
    (1)Reset will not erase flash and debug button will ?

    Yes

    LEE YULIN said:
    (2) What's the difference between hard reset and debug? Is hard reset and debug are the same?

    Again hard reset will not erase the flash but re-run the code but debug will erase as well as later program and then wait for you to re-run.

    Regards,

    Gautam

  • Hi Lee,
    I just want to add to what Gautam had said
    1. In general context of a RESET it will never erase flash, but for RESET button in ccs there're options where we can make the program to reload after a RESET, reload will erase flash. Similarly, for DEBUG button in general context, it will clear all the flash and program it, but there're options in CCS by setting which you'll not clear the flash or program it (you can find how to set those options in this link processors.wiki.ti.com/.../MSP430_-_Connecting_to_a_running_target )

    2. Hard resets are resets due to power-on event, you'll loose all the data in RAM and it will initialized to the default values but in case of software reset you'll not loose the RAM contents unless it's intentionally cleared. As mentioned in above point Debug button in general context will clear all the flash and program it. Hard reset is a hardware phenomenon, where as Debug is a button in CCS.

  • Hi Gautam and Sai,

    Thank you for your reply soon.
    I think i understand what's difference of them.

    BR.

    LEO