File > New > CCS Project
->Empty Project (with main.c)
- "Project Property" ->
Resource
->Linked Resources
, add a variable:INSTALLROOT_F2837XD
=${COM_TI_C2000WARE_SOFTWARE_PACKAGE_INSTALL_DIR}\device_support\f2837xd
. - "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. - "Project Property" ->
C/C++ Build
->Settings
-> Tab "Tool Settings", in"C2000 Compiler"/"Predefined Symbols"
, define a macro:CPU1
- "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). - Create
src
andinc
folder in project root. Copy everything from<C2000Ware Root Folder>\device_support\f2837xd\common\source
tosrc
, exceptdevice.c
,usb.c
andusb_hal.c
. Copy everything from<C2000Ware Root Folder>\device_support\f2837xd\common\include
toinc
, exceptdevice.h
,devicelib.h
,usb.h
andusb_hal.h
. CopyF2837xD_GlobalVariableDefs.c
from<C2000Ware Root Folder>\device_support\f2837xd\headers\source
tosrc
. - Copy
2837xD_RAM_lnk_cpu1.cmd
from<C2000Ware Root Folder>\device_support\f2837xd\common\cmd
to project root. Make sure have only one of2837xD_RAM_lnk_cpu1.cmd
and2837x_FLASH_lnk_cpu1.cmd
active at once. (Code location: RAM / Flash)
Last active
December 9, 2020 20:44
-
-
Save rikka0w0/8de080e712d7c0b36a68078f17f751c7 to your computer and use it in GitHub Desktop.
Create a new project in TI CCS for C2000 (TMS320F28379D)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment