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.

reset function to restart processor

Other Parts Discussed in Thread: TMS570LS3137, HALCOGEN

Im using the TMS570LS3137

I need a function that will reset the MPU and restart code execution from the beginning og main()

anything exists? or how can i do it?

  • Hi Steven,

    There are two software reset capabilities. One is a CPU reset by toggling the bit in the CPURSTCR register in the SYS module. Note this is only a reset to the CPU core. The rest of the system is not reset by the CPU reset. The second method is to generate a global system reset by writing a key to the SYSECR register in the SYS. Note this is a warm system reset that will reset the device.

    When you said you wanted to reset the MPU, do you mean to reset the MPU inside the CPU core? A CPU reset will reset the entire CPU core including the MPU. Whether it is a CPU reset or a system reset, the CPU will start from the reset vector at 0x0.
  • I want to reset the CPU only

    in the reg_system.h of the bootloader this register is called: uint32_t MMUGCR; /* 0x00CC */
    in the reg_system.h of my application this register is called: uint32 CPURSTCR; /* 0x00CC */
    in the tech manual is called: CPURSTGCR

    which one is correct?
  • Hi Steven,
    If you use HalCoGen to generate code for LS3137 then it should have called CPURSTCR rather than MMUGCR in the reg_system.h. The MMUGCR is an old name used in older device such as LS20216 device. I will suggest that you use CPURSTCR to be consistent with the TRM.