SLAAEQ6 March   2025 MSPM0G3519

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Pre-Migration Preparation
    1. 2.1 CCS Version Comparison
    2. 2.2 Pre-Migration Preparation
  6. 3Porting Code to CCS
    1. 3.1 Prepare for Porting
    2. 3.2 Set Up CCS Environment
    3. 3.3 Import Source Code and Files in CCS
    4. 3.4 Handle Device-Specific Code
    5. 3.5 Adapt Code for CCS
    6. 3.6 Build and Debug
  7. 4Post-Migration Optimization
  8. 5Summary
  9. 6References

Build and Debug

  1. Build and validate the project:
    1. Resolve build errors if there is any. Check the error report in the Problems console first. Then locate the error and fix. Common issues are missing includes, undefined macros, and syntax mismatches.
    2. Adjust compiler optimization levels and other settings for performance or size. Please refer to TI ARM Clang Compiler User Manual for a more detailed description of the optimization options.
  2. Create a debug configuration:
    1. Run → Debug Configurations → New Launch Configuration.
    2. Select the target connection (XDS110, JTAG, SWD).
    3. Use a .ccxml file to define the debug probe and MCU.
  3. Run on hardware and debug:
    1. Connect the target microcontroller to CCS and load the program.
    2. Load the program and verify breakpoints, register views, and memory inspection. Verify that the program runs correctly and performs as expected.
    3. Compare behavior with the original IAR project.