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.

[参考译文] Energia:在 CCS 中导入 Energia

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1004255/energia-import-energia-in-ccs

器件型号:Energia

我正在将 Energia 导入 CCS、它可以很好地与一些示例代码(如闪烁 LED)配合使用、但在构建时会显示串行等其他示例。 开始和 serial.print。
当我对 Serial 函数进行注释时、它工作正常

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

    对于 Serial.begin、它在编译时显示错误

    说明资源路径位置类型
    错误:AnalogReadSerial.out 使用 VFP 寄存器参数、c:/users/lenovo/appdata/local/energia15/packages/energia/tools/arm-none-eabi-gcc/8.3.1-20190703/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp libc_nano。a (lib_a-lock.o)不存在 AnalogReadSerial C/C++问题

    生成文件出错

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

    请在下面的主题中查看 Ralph 的响应:

    https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/940060/import-tiva-s-energy-project-into-ccs-and-use-vfp-register-argument-appears-when-compiling-tiva-energia-ccs-uses-vfp-register-argument/3475288#3475288

    Ki

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引用 userid="480273" URL"~/support/microcontrollers/other-microcontrollers-group/other/f/other-microcontrollers-forum/1004255/energia-import-energia-in-ccs/3710292 #3710292"]说明资源路径位置类型
    错误:AnalogReadSerial.out 使用 VFP 寄存器参数、c:/users/lenovo/appdata/local/energia15/packages/energia/tools/arm-none-eabi-gcc/8.3.1-20190703/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp libc_nano。a (lib_a-lock.o)不使用 AnalogReadSerial C/C++ Problem

    使用 GCC multi-lib、传递给链接器的选项选择链接的库。

    如果用于选择库的链接器选项与编译器使用的选项不匹配、则链接器可以报告此类错误。

    将 CCS 10.3与 GCC 工程一起使用发现、并非所有在工程属性 CCS Build -> GNU Compiler -> Runtime Get 上指定的选项都由 CCS 传递给链接器。

    当仅使用 CCS 10.3为 Cortex-R 器件创建项目时、我最初遇到相同的错误。

    在  Build -> GNU Compiler -> Runtime properties 中为-mCPU、-mfloat-abi 和-mfpu 选项指定了值。 但是、CCS 仅自动将 -mCPU 和-mfpu 选项的值传递给链接器。

    若要解决 CCS Build -> GNU Linker -> Miscellaneous 下与不兼容的 VFP 寄存器参数相关的链接器错误、请将 -mfloat-abi=hard 添加到"其他标志"中:

    您能否尝试一下、看看是否也解决了您的链接器错误?