cancel
Showing results for 
Search instead for 
Did you mean: 

SPC560B50x CAN Transmit Interrupt not working

Mayank Bhatt
Associate
Posted on July 20, 2017 at 17:35

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 getting 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.

2 REPLIES 2
Mayank Bhatt
Associate
Posted on July 21, 2017 at 07:29

Please help

Erwan YVIN
ST Employee
Posted on August 09, 2017 at 16:49

Hello ,

it should be the same answer as :

https://community.st.com/0D50X00009XkXW2SAN

Best regards

Erwan