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.

automatic reset for tms570

Hi,

I am using TMS570 Hercules USB stick, I have flashed *.out from the command line using nowFlash.exe, now I need the controller has to reset automatically by itself after flashing ,I mean without pressing reset buttons on the  board.

Is there any method to reset automatically after flashing?

Thanks in advance

  • Hi Hungund,

    You can saoftware reset the device using SYSECR.

    systemREG1->SYSECR = (0x10) << 14;

    Regards,

    QJ

  • Hi Wang,

    I agree with you, but reset should happen immediately after flashing the code.

    Is there any solution to trigger reset immediately after flashing?

    Thanks in advance

  • Hello Jean-Marc,

    I'm new in the use of this MCU and read the post and I tested a little code with an instruction to reset the TMS570 but I have two problems in my program.

    The main function of the program in my MCU is sent each minute a frame in the serial port 1, the secondary function receives a command in serial port 2 and one of this command should be an instruction to reset the MCU. This part work fine, but I add in this day the instruction to reset the microcontroller according in this post of the forum

    To use this instruction I needed to add the header file: #include "HL_reg_system.h" but when I add and compiled the program not present any problems during this process, but when I run the program in the MCU, the device no send more frames to the serial port 1. I don't know what is the reason for this situation because I only add a header file and the MCU do the same.

    Could you say me or guide me to do the best process to reset the system?

    Thanks