SPRADI6 May   2024 F29H850TU , F29H859TU-Q1 , TMS320F2800132 , TMS320F2800133 , TMS320F2800135 , TMS320F2800137 , TMS320F2800152-Q1 , TMS320F2800153-Q1 , TMS320F2800154-Q1 , TMS320F2800155 , TMS320F2800155-Q1 , TMS320F2800156-Q1 , TMS320F2800157 , TMS320F2800157-Q1 , TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Overview of C2000™ MCU Devices in Appliances
  6. 3Introduction of IEC/UL 60730-1/60335-1 Standards
  7. 4Diagnostic Libraries for UL/IEC 60730-1/60335-1 Provided by C2000™
    1. 4.1 Stack Overflow Detection
    2. 4.2 Watchdog
    3. 4.3 CPU and FPU Registers
    4. 4.4 Program Counter (PC)
    5. 4.5 Clock
    6. 4.6 RAM
    7. 4.7 Flash
    8. 4.8 ADC
    9. 4.9 Cycle Time and Memory Usage
  8. 5References

Diagnostic Libraries for UL/IEC 60730-1/60335-1 Provided by C2000™

The requirements for safety standards are almost uniform, but the understanding and requirements of various certification agencies are different. Therefore, TI provides a mature diagnostic library for the MCU section in the standards, so that engineers can make library calls according to the specific requirements of the agency. To meet the testing requirements of IEC/UL 60730-1/60335-1, a round of self-test is usually performed after power-on or reset, and periodic self-tests are performed after the application program is functioning properly. Figure 4-1 shows the commonly-used self-test software structure.

 Commonly Used Self-Test
                    Software Structure Figure 4-1 Commonly Used Self-Test Software Structure

After power-on, when the MCU initialization is completed, a round of self-test is performed, including Stack Overflow Detection, watchdog test, CPU and FPU registers test, PC test, Clock test, RAM test (March13N), Flash test (CRC or ECC), ADC test, and so on. After the system functions are running, periodic self-tests are performed. The main difference between power-on detection and periodic cycle detection is in the stack and watchdog. Stack overflow detection is hardware-triggered and can be configured in the power-on detection. Watchdog detection only needs to be performed once during power-on detection because the watchdog is fed periodically while the program is running.

TI's C2000ware SDK provides the software diagnostic libraries related to the self-test of the previously-mentioned MCU. Taking F280013x as an example, the code can be found in C2000Ware_x_0x_00_00\libraries\diagnostic\f280013x and the example project is in f280013x \examples\test_application. To help engineers better understand the principles and methods of C2000 MCU self-test, and to facilitate the application of the required source code to the system project, and also for communication and confirmation with security certification agencies, detailed introductions follow for each self-test item.