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.

TMS570LS3137-EP: Embedde C Code Required for TMS570LS3137-EP

Part Number: TMS570LS3137-EP

I am working on Human Machine Interface with this controller so i want code for below error list.

Error List:- .  HMI Micro Controller Unit
• Frequency selection knob fault
• ECC for ROM & RAM
• Stack OverFlow
• Watchdog reset
• Key stuck fault for “<->”, “C/N”, “T/F”.
• Light Bus Fault
• Temperature Fault
• Photodiode Fault

  • Hi Deepak,

    The TMS570LS31x microcontrollers protect all accesses to the on-chip flash memory and SRAM memory by dedicated Single-Error-Correction-Double-Error-Detection (SECDED) logic. The SECDED logic implementations use ECC for correcting single-bit errors and for detecting multiple-bit errors in the values read from the Flash or SRAM. The SECDED logic inside the CPU is not enabled by default and must be enabled by the application.

    TMS570 includes a digital windowed watchdog (DWWD) module that protects against runaway code execution. You can choose to generate a system reset or an ESM group2  error signal in case of a watchdog violation. The watchdog is disabled by default and must be enabled by the application.

    This device has two ADC modules. The output of temperature sensor can be sampled by one or two ADCs (redundant). The ADC has build-in self-test and calibration features.    

    Other requirements are related to how you interface those circuits to TMS570LS31x MCU.

  • Hi QJ Wang,

    I am not use OS, I want to do on bare metal code in DSP so I want only required function defination code for checking RAM and ROM error , I didn't found the the reference code also If anyone knows so please send me url.

  • Hi Deepak,

    After the ECC is enabled, the ECC diagnostic is performed continuously when reading data from Flash or SRAM. The ECC error (single bit or double bit) will be reported to ESM, and 2-bit ECC error generates abort too.

    No SW code is needed to calculate and compare the ECC values. 

  • Please refer to the chapter 5 (flash) and 6(Sram) of device TRM for the details regarding the ECC diagnostics.