完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我正在研发SPC560P发现板。 我已经为FlexCAN测试导入了用于发现的测试应用程序'SPC560Pxx RLA CAN测试应用程序'。在此FlexCAN0用于环回模式,它正在工作。 但是在禁用环回模式后,我无法看到带有示波器的CAN_TX引脚上的任何数据。 我配置了: b [0]为CAN0TXD输出,b [1]为pinmap向导中的CAN0RXD输入 环回模式 FlexCAN0使用外部时钟 设置:PressDive = 1,PropSeg = 0,PSEG1 = 5,PSEG2 = 7 在我启动应用程序后,程序卡在传输while循环中: 它似乎返回FALSE并且它打破了函数。 邮箱是否需要任何其他配置或我是否错误地配置了CAN时钟? 感谢您的帮助,并对很多问题感到抱歉,但我是32位控制器编程的新手。 问候, 马塞尔 #loopback#spc56#spc560p #tx #flexcan 以上来自于谷歌翻译 以下为原文 Hello, I am working on a SPC560P Discovery Board. I have imported test application 'SPC560Pxx RLA CAN Test Application for Discovery' for FlexCAN testing. In this FlexCAN0 is used in loop back mode and it is working. But after disabling loop back mode,I cant see any data on the CAN_TX pin with scope. I configured the:
After i start the application the program gets stuck in the transmit while loop:
Its seems like that the returns FALSE and it breaks the function. Is the mailbox needs any additional configuration or I configured the CAN clock incorrectly? Thanks for your help and sorry for the the lot questions but I am new to 32bit controller programming. Regards, Marcell #loopback #spc56 #spc560p #tx #flexcan |
|
相关推荐
1个回答
|
|
你好马塞尔,
抱歉回复晚了;-) 你能检查TX缓冲区的消息缓冲区代码吗? 在发送CAN帧之前,邮箱应处于非活动状态。 您可以使用调试器来检查此值。 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Marcell , Sorry for the late answer;-) Could you check the Message Buffer code for TX buffers the Mailbox should be inactive before sending the CAN Frame. you can use the debugger to check this value. Best regards Erwan |
|
|
|
只有小组成员才能发言,加入小组>>
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
881 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3045 浏览 1 评论
3346 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1925 浏览 1 评论
3785 浏览 6 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
93浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
107浏览 5评论
134浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
99浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
103浏览 5评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-5-12 14:59 , Processed in 0.549133 second(s), Total 44, Slave 39 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191