背景:
第一次接触TI的芯片,对其中遇见的问题或者不清楚的地方做个记录。
问题及解决方法
1.头文件未包含
添加对应头文件
解决方法
2. error #10008-D: cannot find file “C:/ti/Hercules/SafeTI Diagnostic Library/2.4.0/libs/SafeTILib_TMS570LC43_BE.lib”:
需要下载官方demo.exe,但是官方demo需要labview2010环境,笔者当时使用不了
解决方法
需要下载demo.exe,文件安装之后,对应文件在这个安装包里面
然后添加对应路径就行。
3.校验失败:
解决方法
在官网海淘解决方案:
n CCS “Flash Settings”, please check the following items:
- System Reset on Connect is checked
- Auto ECC Generation is unchecked
- Align program segments to 64-bit memory regions is checked
- Flash Verification Settings should be ‘None’
- Perform Blank Check before Program Load must be unchecked
勾选图中选项
4. error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; “test.out” not built
解决方法
修改完图中提示的未定义部分,问题解决
5. Error connecting to the target:
(Error -151 @ 0x0)
One of the FTDI driver functions used during the connect
returned bad status or an error. The cause may be one or
more of: no XDS100 is plugged in, invalid XDS100 serial number,
blank XDS100 EEPROM, missing FTDI drivers, faulty USB cable.
Use the xds100serial command-line utility in the ‘common/uscif’
解决方法;修改仿真器
6.Error connecting to the target:
(Error -180 @ 0x0)
The controller has detected a target power loss.
The user must turn-on or connect the power supply for the target.
(Emulation package 20.0.0.3178)
解决方法
绿色板子必须用12V供电才好使
7.Error initializing emulator:
(Error -2083 @ 0x0)
Unable to communicate with the debug probe. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation.
(Emulation package 20.0.0.3178)
8.Printf 无法输出%d
解决方法:
重写printf函数
9.已使用RAM空间过大
解决方法:
修改前
source/HL_sys_link.cmd", line 86: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can’t be generated for this section. run placement with alignment fails for section “.bss” size 0x19334. Available memory ranges:
修改后: