NOTICE: The Processors Wiki will End-of-Life in December of 2020. It is recommended to download any files or other content you may need that are hosted on The site is now set to read only.

LAUNCHXL2 TMS57012: Project 1

From Texas Instruments Wiki
Jump to: navigation, search

Running the Demo (PROJECT 1)

1. (Optional) Installing Code Composer Studio (CCS)

The virtual COM port drivers that are required to see the console output of the out of box demo are bundled with CCS. If you wish to see this part of the demo, install CCS v6.0.1 or later before connecting the LaunchPad to the PC. For detailed instructions on this step, see Code Composer Studio Installation for LAUNCHXL2-RM46 or Code Composer Studio Installation for LAUNCHXL2-TMS57012.

2. Connecting to a Computer and Powering the LaunchPad

The LaunchPad is configured by default to be USB powered (JP6 must be installed), which can be done by connecting the LaunchPad to a computer using the included USB cable. If you skipped the optional step 1, ignore any error/warning messages about missing drivers during this step.

3. (Optional) Opening a Terminal Program

If you completed step 1 and wish to see the console output of the demo, this is the time to configure the terminal program of your choice:

  • Select COM port identified as "XDS Class Application/User UART" from your computer's device manager.
  • Configure Baud Rate: 19200, Data Bits: 8, Stop Bits: 2 and Parity: None.

4. Running the Out-of-box Demo

This LaunchPad comes pre-programmed with a demo set that highlights several of MCU's safety features. When powered the LaunchPad will start blinking USER LEDs.

Demo 1:

An on-board Ambient Light Sensor is connected to the MCU's Analog Input 1. The USER LED B blinks according to the light intesity and a change in light intensity will cause it to blink faster or slower.

Demo 2:

Shorting jumper JP1 will short the OSC to GND and cause the MCU to experience an Oscillator Fault. The on-chip monitor will detect and trigger an error singal causing the ERR LED to light up.

Demo 3:

The push-button USER SWITCH B will inject a core compare error (CPU mismatch). An on-chip monitor will detect the fault and trigger an error signal causing the ERR LED to light up.

Demo 4:

The push-button USER SWITCH A will inject a single bit error in the MCU's flash on every push. ECC logic corrects single bit errors in flash and counts them. The USER LED A blinks faster with every error detected. When a pre-programmed limit (6) is reached, the error signal is triggered and the ERR LED lights up.

Project 1 Binary file


The .zip file contains the .out file for the project.

To load this file back into the TMS570LS1224 device:

  1. Launch a debug session in CCS, with the LAUNCHXL2-TMS57012 target configuration file.
    Launch Your Target Configuration From the Context Menu (Right Click)
  2. Connect to the TMS570LS1224 device.
    Connect To Your Target Device
  3. From the CCS menu, select Run->Load->Load Program.
    Load Program
  4. Navigate to the .out file you unzipped and select this file to load into the target.
    Select the .out file you unzipped
  5. Press OK to load the program (the program is loaded into FLASH automatically by CCS)