你好
我正在研究SPC560B50x控制器并尝试从控制器向总线工具发送CAN消息。
我无法命中CAN传输ISR断点,但通过我的控制器传输的消息会反映在busmaster工具中。
CAN配置如下 - :
1)使用CAN通道0。
2)波特率500 kbps。
3)没有使用FIFO。
4)首先发送最低缓冲区
5)所有IMASK1使能的最大消息缓冲区为32(给定值= 0xFFFFFFFF)。
6)总线关闭,错误,Tx警告,Rx警告全部启用。
7)所有都在冻结模式下完成。
在CAN_Transmit功能中,我正在设置适当的传输代码。
我使用32消息buff来传输32个不同的数据,通过CAN总线传输相同的消息ID并在传输后清除所有IFLAG1。
附加了代码段。
请帮助,以便我可以打
CAN传输ISR断点,我可以继续。
以上来自于谷歌翻译
以下为原文
Hi
I am working on SPC560B50x controller and trying to send CAN messages from the controller to the busmaster tool.
I am unable to hit CAN transmit ISR breakpoint, but messages transmitted through my controller is get
ting reflected in the busmaster tool.
CAN configuration is as follows-:
1) Using CAN channel 0.
2) Baudrate 500 kbps.
3) No FIFO being used.
4) Lowest Buffer transmitted first
5) Max Message Buffers used are 32 for all IMASK1 is enabled ( value given = 0xFFFFFFFF).
6) Bus Off, Error, Tx Warning, Rx Warning all are enabled.
7) All being done in the freeze mode.
In CAN_Transmit function I am setting appropriate code for transmission.
I am using 32 message buff to transmit 32 different data, same message ID over CAN bus and clearing all IFLAG1 after transmission.
Code snippet is attached.
Please help so that I may be able to hit the
CAN transmit ISR breakpoint and I may proceed further.
0