1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我正在尝试制作一个简单的项目,一开始就可以发送一个CAN帧。 我正在使用没有任何CAN板的SPC560B-DIS evb(稍后将在我自己的转换器上连接)。 我从其他evb中取出了一个CAN样本并将其合并到我的项目中,但它不起作用! 有没有可以使用的CAN样本? 我可以将示波器连接到TX引脚并在没有转换器的情况下查看数据到CAN高电平和CAN低电平吗? 在示例中,我没有看到I / O(Tx和Rx)的任何初始化是正确的吗? 我可以在电路板上使用外部时钟作为CAN模块吗? 谢谢 Shachar 以上来自于谷歌翻译 以下为原文 Hello, I am trying to make a simple project that for a start can send a single CAN frame. I am using the SPC560B-DIS evb without any CAN board (will connect later on my own converter). I took a CAN sample from other evb and merged it to my project but it doesn't work! Is there any CAN sample that works that I can use? Can I connect a scope to the TX pin and view the data without converter to CAN High and CAN Low? In the example i did not see any initialization to the I/O (Tx and Rx) is that correct? Can I use the external clock on my board for the CAN module? Thanks Shachar |
|
相关推荐
11个回答
|
|
你好罗森,
您是否成功通过JTAG USB和PLS接手? 有一个主板和应用程序的应用程序。微型模块 SPC560Bxx OS-Less CAN测试应用 您可以使用这些应用程序的起点(从Appwizard导入) SPC560Bxx用于发现的无OS测试应用程序 采用SPC560Bxx OS-Less CAN测试应用的CAN配置 并将这些配置用于SPC560Bxx OS-Less Test Application for Discovery 警告:io设置不同,时钟设置完全不同 否则你不应该开机。 无论如何,我们将在接下来的几周内更新应用程序存储库,尤其是发现板。 是的,可以连接到TX引脚并查看数据 将SPC560B6DIS I / O接头与参考手册进行比较。 CAN外设由canStart启动。 对于CAN模块,您可以通过设置低级驱动程序选项来使用外部时钟。 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Rosen , Do you succeed to take the hand by JTAG USB and PLS? There is an application for motherboard & mini-module SPC560Bxx OS-Less CAN Test Application You can use like starting point these application (importing from Appwizard) SPC560Bxx OS-Less Test Application for Discovery Take the CAN configuration of SPC560Bxx OS-Less CAN Test Application and use these configurations into SPC560Bxx OS-Less Test Application for Discovery WARNING : the io settings are different and the clocks settings are completely different otherwise you should not boot. Anyway , we will update the application repositories in the following weeks especially for discovery boards. yes , it is possible to connect to the TX pin and view the data compare SPC560B6DIS I/O headers with your reference manual. CAN peripheral is started by canStart. for the CAN module , you can use an external clock by settings your low level drivers option. Best regards Erwan |
|
|
|
你好,Erwan,
感谢您及时的回复。 我确实管理过JTAG USB和PLS,花了我一段时间,但它现在有效。 关于你的建议,这正是我昨天所做的,但没有运气。 题: 1.为什么示例中没有定义任何CAN I / O?是不是应该像Leds和Push按钮一样在配置文件中配置? 2.在评估期间是否可以选择使用C ++编译器? 谢谢, Shachar 以上来自于谷歌翻译 以下为原文 Hello Erwan, Thanks for the quick response. I did manage the JTAG USB and PLS, took me a while but it works now. Regarding your suggestion, that is exactly what I did yesterday but no luck with it. question: 1. Why isn't there any CAN I/O defined in the example? Shouldn't it be configured in the configuration file just like the Leds and the Push button? 2. Is there an option to use C++ compiler during the evaluation period? Thank you, Shachar |
|
|
|
你好罗森,
1)关于CAN驱动, 8个第一个邮箱ID专用于RX(canReceive)(输入) 8下一个邮箱ID专用于TX(canTransmit)(输出) 组件GUI(在CAN上)用于启用,禁用和配置CAN驱动程序。测试应用程序是在具有EID 0x1234567的通道上发送CAN消息 2)我们正在使用由hightec提供的''gcc powerpc vle''。 没有选项可以使用C ++编译器。 它存在于我们的插件中: C: SPC5Studio 蚀插件 com.st.tools.spc5.tools.hightec_1.0.0.201306281422 克斯 BIN PPC-VLE-G ++ EXE 您必须创建和更新您的平台组件,以提供有关c ++最佳问候的编译 二万 你好,Erwan, 感谢您及时的回复。 我确实管理过JTAG USB和PLS,花了我一段时间,但它现在有效。 关于你的建议,这正是我昨天所做的,但没有运气。 题: 1.为什么示例中没有定义任何CAN I / O?是不是应该像Leds和Push按钮一样在配置文件中配置? 2.在评估期间是否可以选择使用C ++编译器? 谢谢, Shachar 以上来自于谷歌翻译 以下为原文 Hello Rosen , 1) About CAN driver , the 8 first mailbox id are dedicated for RX (canReceive) (Input) the 8 next mailbox id are dedicated for TX (canTransmit) (Output) the component GUI (on CAN) is used to enable , disable and configure your CAN Drivers. The test application is to send a CAN Message on a channel with EID 0x1234567 2) We are using a ''gcc powerpc vle'' provided by hightec. there is no option to use the C++ compiler. it is existing in our plugin : c:SPC5Studioeclipsepluginscom.st.tools.spc5.tools.hightec_1.0.0.201306281422hightecbinppc-vle-g++.exe you have to create and update your platform component to provide the compilation on c++ Best Regards Erwan Hello Erwan, Thanks for the quick response. I did manage the JTAG USB and PLS, took me a while but it works now. Regarding your suggestion, that is exactly what I did yesterday but no luck with it. question: 1. Why isn't there any CAN I/O defined in the example? Shouldn't it be configured in the configuration file just like the Leds and the Push button? 2. Is there an option to use C++ compiler during the evaluation period? Thank you, Shachar |
|
|
|
你好罗森
我有同样的问题,我编写代码并成功编译,但没有对Tx CAN Pin的操作 你的问题解决了吗? 如果你知道什么是问题,请帮我解决这个问题 谢谢 最好的祝福 vanima 以上来自于谷歌翻译 以下为原文 Hello Rosen I have the same problem i wrote the code and compile it successfully but no action on Tx CAN Pin is your problem solved ? if you know what is the problem please help me on this thanks Best Regards vanima |
|
|
|
你好Vanima,
我没有问题 : 关于当前的CAN驱动程序, 8个第一个邮箱id专用于RX(canReceive)(输入)(1,2,3,4,5,6,7,8) 8下一个邮箱ID专用于TX(canTransmit)(输出)(9,10 .... 16) Tx通道ID 1表示9(在lld部分中)....等等。 下周,版本3.4.0上的CAN驱动程序将有所改进 #281492 CAN命名约定:更改过滤器的ID号 #286966该消息缓冲CAN模块中的Tx / Rx配置 将充满活力 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Vanima , I have no problem : About the current CAN driver , the 8 first mailbox id are dedicated for RX (canReceive) (Input) (1,2,3,4,5,6,7,8) the 8 next mailbox id are dedicated for TX (canTransmit) (Output) (9,10 ....16) Tx Channel ID 1 means 9 (in lld part) ....and so on .. Next Week, There is will be a improvement on CAN driver on the version 3.4.0 #281492 CAN Naming convention : Change the id number of Filter #286966 The message buffers Tx/Rx Configuration in CAN module will be dynamic Best regards Erwan |
|
|
|
你好,
我正在尝试使用chibi OS在SPC560 B发现板上发送CAN消息。 我配置了CAN1 Tx引脚(PC10)和Rx引脚(PC11)并将其连接到外部CAN收发器。我使用''cantransmit''功能可用(canTransmit(& CAND2,3,& txmsg,TIME_IMMEDIATE)。我在CAN引脚中看不到任何信号。 您对可能出现的问题有什么看法吗?你有一个示例代码来使用SPC560B-dis上的chibiO来测试CAN吗? 以上来自于谷歌翻译 以下为原文 Hello, I'm trying to send a CAN message on SPC560 B discovery board using chibi OS. I configured the CAN1 Tx pin (PC10) and Rx pin (PC11) and connect it to an external CAN transceiver. I m using ''cantransmit ''function available (canTransmit(&CAND2, 3, &txmsg, TIME_IMMEDIATE). I can't see any signal in CAN pins. Have you any idea about the possible problem? Have you a sample code to test CAN using chibiOs on SPC560B-dis? |
|
|
|
你好Souha,
您是否尝试调整“SPC560Bxx OS-Less CAN测试应用程序”的配置? 对于此应用程序,您只需更改时钟设置即可。 我们已经在应用程序向导中创建了一个更改请求,用于“'SPC560Bxx for discovery'”的一些新应用程序。 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Souha , Did you try to adapt the configuration for ''SPC560Bxx OS-Less CAN Test Application'' ? For this application , you have just to change the clock settings. we have created a Change request for to pout in the Application Wizard some new applications for ''SPC560Bxx for discovery''. Best Regards Erwan |
|
|
|
你好,Erwan,
我对时钟设置(系统时钟或CAN时钟)有点困惑。你放了哪些设置? 感谢帮助 Souha 以上来自于谷歌翻译 以下为原文 Hello Erwan, I m a little confused with clock settings(system clock or CAN clock). Which settings did you put? Thanks for help Souha |
|
|
|
你好Souha,
应用程序''SPC560Bxx OS-Less CAN测试应用程序用于发现''附件。 它将被整合到下一个版本中。 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Souha , The application ''SPC560Bxx OS-Less CAN Test Application for Discovery'' is in attachment. it will be integrated in the next release. best regards Erwan |
|
|
|
你好,Erwan,
在这篇文章中我和其他人有同样的问题。 我想在SPC560B-DIS上使用CAN端口。 我已经下载了你在上一篇文章中给出的“SPC560Bxx OS-Less CAN测试应用程序发现”配置,我尝试配置它以使用FlexCAN0模块:我禁用环回模式,但我看不到任何我的示波器在TX和RX上发出信号((PB [0]和PB [1])。 我的申请是附件:你能说我有什么问题吗? 谢谢你的帮助, 西尔 以上来自于谷歌翻译 以下为原文 Hello Erwan, I have the same question than other people in this post. I want to use a CAN port with the SPC560B-DIS. I have donloaded the ''SPC560Bxx OS-Less CAN Test Application for Discovery'' configuration that you have given in your last post and I try to configure it for use the FlexCAN0 module: I disable loopback mode, but I can't see anyt signals with my scope on TX and RX ((PB[0] and PB[1]). My application is in attachment: can you say me what is wrong? Thanks for your help, Sylvain |
|
|
|
你好Sylvain,
我没有在您的CAN配置上看到任何过滤器。 你如何检查你的CAN帧传输? 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Sylvain , i do not see any filters on your CAN configuration. How do you check your CAN Frame transmission ? Best Regards Erwan |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2730 浏览 1 评论
3239 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1808 浏览 1 评论
3647 浏览 6 评论
6035 浏览 21 评论
1339浏览 4评论
198浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
442浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
273浏览 2评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 12:50 , Processed in 1.323089 second(s), Total 68, Slave 62 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号