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.

[参考译文] TM4C1294NCPDT:GCC 和 VFP 链接问题

Guru**** 2610425 points
Other Parts Discussed in Thread: TM4C1294NCPDT

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1285985/tm4c1294ncpdt-gcc-and-vfp-linking-problem

器件型号:TM4C1294NCPDT
主题中讨论的其他器件:测试2

我正在使用的库是使用 GCC 编译的、在使用 TI 编译器编译工程时未按预期执行。  因此、我将尝试将一个项目从 TI 编译器切换到 GCC。   我似乎无法正确链接任何 GCC 项目。  我创建了一个非常简单的新项目、并得到了同样奇怪的结果。  我做错了什么?

#包含
#包含


/**
* main.c
*/
int main (空)
{
INT TEST = 4;
int test2 = 4;
TEST +=测试2;
返回0;

****项目 TESTGNU 的配置调试构建****

"C:\\ti\\ccsv7\\utils\\bin\\gmake"-k -j 8 all -O
'正在构建文件:../main.c'
'调用:GNU 编译器'
Main:\Program Files (x86)/GND Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe"-c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfp=fpv4-sp-d16 /ti/CODE/TESTGNU
"已完成建筑:../main.c"
'''
'构建目标:TESTGNU/out'
'调用:GNU 链接器'
"C:/Program Files (x86)/GND Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe"-mfp=fpv4-sp-D16 -dpt_TM4C1294NCPDT
Makefile:144:目标'TESTGNU/out'的食谱失败
C:/program files (x86)/GNU ARM 嵌入式工具链/10 2021.10/bin/.../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe:错误:./main.o 使用 VFP 寄存器参数、TESTGNU.out 未使用
C:/program files (x86)/GND ARM embedded toolchain/10 2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe:没能合并文件./main.o 的目标特定数据
C:/program files (x86)/Gnu arm embedded toolchain/10 2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe:error:./tm4c1294ncpdt_startup_ccs_gcc.o use VFP 寄存器参数、tESTGNU/out 不使用
C:/program files (x86)/Gnu arm embedded toolchain/10 2021.10/bin/.../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe:没能合并文件./tm4c1294ncpdt_startup_ccs_gcc.o 的目标特定数据
collect2.exe:错误:LD 返回1退出状态
gmake[1]:***[TESTGNU/out]错误1
gmake:***[全部]错误2
Makefile:140:目标"全部"的食谱失败

****构建完成****

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

     您是否可以首先运行使用 GNU 构建的附加 blinky 示例项目? 程序运行后、用户可以将该示例用作起点、并使用自己的主文件进行更新。  

    e2e.ti.com/.../blinky_5F00_GNU.zip