Skip to content

upb-lea/LCB-Software

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming with Code Composer Studio (CCS)

Code Composer Studio: Settings for code from this repository

For equal code indentations, perform the following steps:

  • Window -> Preferences -> Show advanced settings
  • Window -> Preferences -> C/C++ -> Code Style -> Formatter -> Edit ... -> Tab size: 2 -> Apply -> OK -> Apply and Close

Code Composer Studio: Import software project and adapt it to your computer filepaths

  • Project -> Import CCS Projects... -> Choose your project to import
  • In Select search-directory browse to your project (e.g. .../LEA_control_board/software/01_Control_boards/F28386D_GPIO/
  • Press Finish

Code Composer Studio: Change C2000Ware version and compiler version

This steps are necessary if the original project was developed with different versions for the C2000Ware and compilers. Both steps needs to be done for RAM and for FLASH. Select between both modes with the arrow at the hammer-symbol.

Adapt C2000ware version

  • right click on project -> Properties -> General -> Products
  • Select C2000Ware and click Edit
  • Select your installed C2000Ware version in the right drop-down menu

Adapt compiler version

  • right click on project -> Properties -> General -> Projects
  • Select your installed compiler version

C2000 Dual-Core-Debugging

This section describes the simultaneous debugging of two cores of a Texas Instruments C2000 DualCore processor.

  • Step 1: Chose target configuration for CPU1 oder CPU2 -> right click -> Launch Selected Configuration
  • Step 2: right click on Debug-Probe CPU1 -> Connect Target -> Run -> Load -> Load Program… -> Browse project… -> CPU 1-Projekt -> FLASH or RAM -> chose .out-file -> OK -> OK
  • Step 3: right click on Debug-Probe CPU2 -> Connect Target -> Run -> Load -> Load Program… -> Browse project… -> CPU 2-Projekt -> FLASH or RAM -> chose .out-file -> OK -> OK
  • Step 4: click on Debug-Probe CPU1 -> Resume (Start) -> click on Debug-Probe CPU2 -> Resume (Start)
  • Step 5: For debugging (read/write registers/global variables) the respective debug sample (CPU 1 or CPU 2) must be clicked. The registers/variables of the other CPU are not active during this.

Debugger

Flash XDS100 Firmware to FTDI Chip:

  • Watch this video first
  • Download FT Prog here
  • Load the configuration file for XDS100v2 programmer: File -> Open template -> Modified template
  • Right click on Device: 0 -> right click -> Apply Template -> Template: XDS100v2_UART.xml
  • Flash file: Programm Devices -> Program

Note: It is very important to click on Apply Template as shown in the video. Otherwise the controller will not be programmed correctly!

Note: The modified file has the Virtual COM Port enabled to provide UART communication. This is not implemented as in the video. To enable this, see the figure.

About

Software examples for LEA Control Board (LCB)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published