Skip to content

Instantly share code, notes, and snippets.

@rikka0w0
Last active December 9, 2020 20:44
Show Gist options
  • Save rikka0w0/8de080e712d7c0b36a68078f17f751c7 to your computer and use it in GitHub Desktop.
Save rikka0w0/8de080e712d7c0b36a68078f17f751c7 to your computer and use it in GitHub Desktop.
Create a new project in TI CCS for C2000 (TMS320F28379D)
  1. File > New > CCS Project -> Empty Project (with main.c)
  2. "Project Property" -> Resource -> Linked Resources, add a variable: INSTALLROOT_F2837XD = ${COM_TI_C2000WARE_SOFTWARE_PACKAGE_INSTALL_DIR}\device_support\f2837xd.
  3. "Project Property" -> C/C++ Build -> Settings -> Tab "Tool Settings", in "C2000 Compiler"/"Include Options", add an include path: ${INSTALLROOT_F2837XD}/headers/include, this includes all headers which contains all register definition. Add an include path: ${PROJECT_LOC}/inc, this folder will be populated with headers copied from TI's demo.
  4. "Project Property" -> C/C++ Build -> Settings -> Tab "Tool Settings", in "C2000 Compiler"/"Predefined Symbols", define a macro: CPU1
  5. "Project Property" -> C/C++ Build -> Settings -> Tab "Tool Settings", in "C2000 Linker"/"File Search Path", add a search path: ${INSTALLROOT_F2837XD}/headers/cmd, also a add a library file: F2837xD_Headers_nonBIOS_cpu1.cmd (--library, -I).
  6. Create src and inc folder in project root. Copy everything from <C2000Ware Root Folder>\device_support\f2837xd\common\source to src, except device.c, usb.c and usb_hal.c. Copy everything from <C2000Ware Root Folder>\device_support\f2837xd\common\include to inc, except device.h, devicelib.h, usb.h and usb_hal.h. Copy F2837xD_GlobalVariableDefs.c from <C2000Ware Root Folder>\device_support\f2837xd\headers\source to src.
  7. Copy 2837xD_RAM_lnk_cpu1.cmd from <C2000Ware Root Folder>\device_support\f2837xd\common\cmd to project root. Make sure have only one of 2837xD_RAM_lnk_cpu1.cmd and 2837x_FLASH_lnk_cpu1.cmd active at once. (Code location: RAM / Flash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment