Air-duino / Arduino-AirMCU

Arduino core for the Air MCU.
https://arduino.luatos.com/
MIT License
69 stars 21 forks source link

Serial.write和Serial.print函数输出0xAA会变成0xFFFD #94

Closed lable closed 9 months ago

lable commented 9 months ago

描述一下这个bug / Describe the bug

Serial.write和Serial.print函数输出0xAA会变成0xFFFD

复现步骤 / To Reproduce

Serial.write((unsigned char)0xAA);

(unsigned char) test[] = {0xAA}; Serial.write(( unsigned char*)test,sizeof(test)); Air001SerialPrint.zip

如果正常,应该是什么样 / Expected behavior

AA

截图 / Screenshots

324E63E8188FC7303B12C3CAA6E74812

日志 / Logs

---- 已打开串行端口 /dev/tty.usbmodem1102 ---- fffd

系统 / System

macos14 arm

PACK包版本 / Version

0.6.2

验证

LuaRobot commented 9 months ago

⚠ 你的Issue可能缺少了一些信息,请自觉补全,以证明issue内容的真实性:

⚠ Your issue may be missing some information, please complete it to prove the authenticity of the content of the issue:

lable commented 9 months ago

⚠ 你的Issue可能缺少了一些信息,请自觉补全,以证明issue内容的真实性:

⚠ Your issue may be missing some information, please complete it to prove the authenticity of the content of the issue:

  • ❌未提供复现所需的代码或工程 does not provide codes or project for reproduction

机器人就是机器人,代码片段里已经说明了问题。上传了测试工程,你们跑跑看吧

chenxuuu commented 9 months ago

参考 https://github.com/Air-duino/Arduino-AirMCU/issues/50

lable commented 9 months ago

@chenxuuu 您验证这个问题了吗?怎么就直接关闭了。 又尝试用 LL 库芯片频率设置成了 48MHZ发送0xAA,PC 上仍然接收到的是0xFFFD,是不是硬件有什么处理,还是 0xAA有什么特殊用途?

air001_ll_usart.ino.zip Xnip2023-12-14_09-14-58

chenxuuu commented 9 months ago

图片

lable commented 9 months ago

是vscode的arduino插件问题,用llcom能收到正确的数据,谢谢!