This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Code Composer Studio
客户投诉CCSv7出现以下故障。
使用的示例是C2000Ware_1_00_01_00\device_support\F2833x\examples\FPU_hardware。2833。 我附上了项目zip文件 e2e.ti.com/.../Example_5F00_2833xFPU_5F00_hardware.zip
1)他把它的主()重做如下:
#include <mathing.h>
双Z1;
Z1 = sqrt (2.0);
Z1 = pow (2.0 ,1.5);
2)在控制台中构建时获取错误消息;
'Example_2833xFPU_hardware.out '失败
错误:重新定义符号"_sqrt":首先在中定义
"C:/ti/tirex-content/C2000Ware_1_00_01_00/libraries/math/FPUfastRTS/c28/lib/
他说5.5 没有问题,并想使用rts2800_ fpu32_fast_supplie.lib来加快他的处理速度。 请告诉我们有关此问题的解决方法。
此致,
山内和夫
您好,Ki-Soo Lee,
感谢您的支持。
很遗憾地说,我无法按照您建议的方式解决这个问题。
1. 我想知道这两个库,1)和2),不能组合使用。
Z1 = sqrt (2.0); …1) rts2800_ fpu32_fast_supply.lib
Z1=pow (2.0 ,1.5); ... 2) rst2800_fpu32.lib
2. 错误:重新定义符号"_sqrt":
首先在中定义
"C:/ti/tirex-content/C2000Ware_1_00_01_00/libraries/math/FPUfastRTS/c28/lib/
rts2800_fpu32_fast补充.lib<sqrt_F32.obj>"; …1)
在中重新定义
"C:/ti/ccsv7/tools/compiler/ti-CGT-C2000_C2000_SCC0.5.LTS/lib/rts2800_fpu32.lib<e_sqrtf.obj>"<xmt-block0>2000 16.92800 16.9 …2)
3. 链路顺序;
fpu32_fast_supply.lib 中sqrt函数的处理时间比fpu32.lib (如下所示)快。 因此,客户机要使用fpu32_fast_supply.lib。 此优化级别为寄存器。
测试代码;
//切换GPIO34
GpioDataRegs.GPBTOGLE.bit.GPIO34 = 1;
Z1 = sqrt (2.0);
GpioDataRegs.GPBTOGLE.bit.GPIO34 = 1;
{
volatile unsigned int cn;
用于( cnt =5; cnt>0; cnt --){}
}
此致,
山内和夫
问题的根源在库rts2800_fpU_FAST_sup补 遗.lib中。 虽然我无法确认,但我确信此错误已在该库的更高版本中得到修复。 因此,如果问题不大,请尝试升级该库或提供该库的软件包。
谢谢,此致,
-George