XMC4800 串口中断接收数据错误

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
firstgoods
Level 1
Level 1
5 questions asked 10 sign-ins 5 sign-ins
串口中断数据,接收到的数据为3个字节。接收到的数据为上一帧的最后一个字节和本数据帧的头两个字节。请问该问题如何解决?通过逻辑分析仪抓取数据,RX数据是正常,但是软件中收到数据的数组中数据是异常的。采用APP。
0 点赞
1 解答
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked
0 点赞
5 回复数
Owen_Su
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

您好,

    您可以将您的工程分享给我们,我们帮您看看问题出在哪?

    如果是使用APP的话,可以再参考一下APP的manual在进行配置。希望这能帮到您。

BR,

Owen

0 点赞
lock attach
Attachments are accessible only for community members.
firstgoods
Level 1
Level 1
5 questions asked 10 sign-ins 5 sign-ins

您好。压缩包中的为代码,截图为软件打断点查看到的信息,以及逻辑分析仪抓取到的信息。请协助帮忙分析一下。谢谢!

0 点赞
lock attach
Attachments are accessible only for community members.
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

你这个地方用的app,同时把底层的代码拿出来修改,需要你自己简化以后进行测试。

附件的工程,直接用lld进行配置的,从底层把数据直接读上来就可以了。然后你自己对应进行修改一下。这个代码是直接从寄存器里面读取值,逻辑上面你自己处理就可以了。

 

0 点赞
firstgoods
Level 1
Level 1
5 questions asked 10 sign-ins 5 sign-ins

代码已上传,请帮忙分析一下,谢谢

0 点赞
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked
0 点赞