编译 tms320f28388 项目,并生成 hex 文件
介绍 C2000Ware 目录
archive | 架构 |
boards | 基于官方开发板的例子 |
device_support | 官方驱动,建立工程重点要用到的东西(基于寄存器变量访问) |
docs | 说明文档 |
driverlib | 官方的驱动(基于寄存器地址访问) |
examples | 例子 |
kernel | |
libraries | |
training | |
uninstallers | |
utilities | 串口启动 |
-
新建tms工程,file -> new -> ccs project
复制这三个文件:
-
配置工程目录
-
导入文件,继续配置文件
- 配置链接路径 properties -> include options
${ProjDirPath}/source ${ProjDirPath}/source/libmcu_hal/src ${ProjDirPath}/source/libmcu_hal/src/C2000Ware_5_01_00_00/device_support/f2838x/commonsource/include ${ProjDirPath}/source/libmcu_hal/src/C2000Ware_5_01_00_00/device_support/f2838x/headers/include ${ProjDirPath}/source/libmcu_hal/src/C2000Ware_5_01_00_00/device_support/f2838x/driverlib ${ProjDirPath}/source/libmcu_hal/src/C2000Ware_5_01_00_00/libraries/flash_api/f2838x/include ${ProjDirPath}/source/libpublic ${ProjDirPath}/source/user ${ProjDirPath}/source/libmcu_hal/src/C2000Ware_5_01_00_00/libraries/flash_api/f2838x/cm/include/FlashAPI
配置变量 Properties -> predefined symbols
CPU1
_DUAL_HEADRES
- Properties -> general
-
配置生成hex文件的命令,properties -> build -> steps
"D:/TMS/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/hex2000.exe" -o "C:/Users/Tophanter/Desktop/tms/tms320f2838x_demo/Debug/tms320f28388d.hex" "C:/Users/Tophanter/Desktop/tms/tms320f2838x_demo/Debug/tms320f2838x_demo.out"
- build project 编译,生成的 hex 在 debug 目录下