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/MSP430FR5969:Energía SofwareSerial.h 和 μ C/Code Composer 时编译错误

Guru**** 2524460 points
Other Parts Discussed in Thread: MSP430FR5969, ENERGIA

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/866953/ccs-msp430fr5969-compiling-error-while-using-sofwareserial-h-and-energia-code-composer

器件型号:MSP430FR5969
主题中讨论的其他器件: Energia

工具/软件:Code Composer Studio

大家好、

我一直在尝试使用 MSP430FR5969 Launchpad 评估套件开始 与 SARA-R4手机调制解调器进行串行通信。

基本来说、调制解调器只通过串行通信来发送 AT 命令、因此我决定从 基础知识开始、使用 库示例

包含 
SoftwareSerial mySerial (P1_4、P1_3);// RX、TX
void setup (){//打开串行通信并等待端口打开:
Serial.begin(9600);
Serial.println ("Goodnight mo!");//设置 SoftwareSerial 端口
mySerial.begin(9600);
mySerial.println ("World?")的数据速率;
}mySerial.write
(


if)(available)(read)(on串 行()(if)(read)(read)(won)(won)(if)(ySerial.roop)(if)

遗憾的是  、每次我尝试编译代码时都会跳转错误。

C:\Users\DOM\Desktop\Energia-1.8.7E21\hardware\Energia\MSP430\libraries\SoftwareSerial\SoftwareSerial.cpp:80:2:#error 此版本的 SoftwareSerial 仅支持16MHz 处理器

C:\Users\Dome\Desktop\SoftwareSerial\Software8\Software\Software40\Software\energetr\netr\netr\netr\netr\netr\netr\netr\netr\netr\netr\netr\netr\netr\netr\netr\netr\netr\netr\net\netr\netr\netr\net\net\net\net\net\net\net\net\net\net\net\net\net\net\net\nets\cp1.7e\s\cmc\s\cmsp4\s\cp\s\cmc\s\cmc\s\cmc\s\cmsp4\s\cmc\s\come\s\cmsp4\s\come\s\come\s\come\





未在此范围

退出状态1
错误编译参数 la tarjeta MSP-EXP430FR5969LP 中声明'Xmit_start_adjustation'。 

因此、我决定调试该库、寻找这些行并尝试以这种方式解决错误、但几天后、我仍然无法消除编译错误。

是否有人知道正在发生什么以及我如何 解决它?

此致

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

    您好 Julio、

    我做了一些研究、我发现 SoftwareSerial 库不适用于 MSP430。

    下面 一个可能有用的链接。

    是否有不能使用默认 Energia 串行库的原因?

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

    您好、Julio、

    我弄错了。  添加

    #define F_CPU 16000000L

    到 C:\Energia-1.8.7E21\hardware\Energia\MSP430\variants\MSP-EXP430FR5969LP 目录中的文件 pins_energia.h。