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.

[参考译文] CCS/MSP430F5255:MSP430F5255

Guru**** 2589245 points
Other Parts Discussed in Thread: CCSTUDIO

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/624870/ccs-msp430f5255-msp430f5255

器件型号:MSP430F5255
Thread 中讨论的其他器件:CCStudio

工具/软件:Code Composer Studio

嗨、大家好。。。

我 不熟悉使用 MSP 控制器。 我正在处理一个项目、其中 MSP 控制器用作主机控制器来控制 BLE 模块。 为此、我需要将为 BLE 模块提供的库包含到 MSP 中。 此 BG Lib 通常在 ANSI C 标准中开发。 因此、当我将此库包含在本机 TI MSP 编译器中时、我会遇到很多错误。 从一些资源中、我了解到、通过使用 MSP430 GCC 编译器、我可以克服这些错误。 我在 CCStudio 7.1.0中下载了 MSP430 GCC。  

但是、当我尝试构建我的旧 MSP 代码时、我会在一些常规函数中遇到错误。 我搜索了 MSP430 GCC 示例、并从以下链接中获取了一些示例代码。  

https://sourceforge.net/p/mspgcc/historical/ci/bzr/mspgcc-examples/~/tree/

当我尝试编译这些示例时、我会遇到 致命错误:没有显示#include 的此类文件或目录 和#include 误差。 我尝试对这些行进行注释、并包括#include 。 但这会将每个声明显示为错误。  

请帮助我了解如何在 CC Studio 中使用 MSP430 GCC 示例代码、或提供可使用 MSP430 GCC 编译器在 CC Studio 中构建的任何工作示例代码。