Develope TJA1145 AND CYT2B9CAE CAN Communication

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

cross mob
lock attach
Attachments are accessible only for community members.
Kwon
Level 1
Level 1
5 sign-ins First solution authored First reply posted

I am developing CAN Communication with TJA1145 AND CYT2B9CAE  classic CAN Example.

But  If you request the CAN transmission in the current example, there is a problem that transmission is not possible after Pending.

The attached file  is a CAN communication code using SPI0 and CAN0_2(CAN2).

What is Problem(Occured Send Pending)?

 

0 Likes
1 Solution
Kwon
Level 1
Level 1
5 sign-ins First solution authored First reply posted

I solved this problem. 

CAN Example defined  500kbs  but I checked 250kbs with oscilloscope.

I changed value(10->5) of prescaler Because I used 8Mhz crystal.

Success CAN Communication

 

 

View solution in original post

0 Likes
3 Replies
Kavya_B
Moderator
Moderator
Moderator
100 replies posted 10 likes given 25 solutions authored

Hello,

 

We would like to get some clarifications regarding the problem statement. Could you please answer the below questions?

1) Could you please clarify what is the expected behavior of the code here with SPI involved to trigger CAN communication? What are the purposes of SetTrcvMode() and GetTrcvMode() functions?

2) Are you using boards from cypress for your testing or is it a custom board?

3) You have stated, "If you request the CAN transmission in the current example, there is a problem that transmission is not possible after Pending." Can you please elaborate on this? Are you seeing proper reception of CAN messages with configured IDs at CYT2B9CAE and are you facing problem while transmitting the CAN messages? I request you to explain in detail and provide us some logs and screenshots if possible to debug on this.

 

Thanks,

Kavya

0 Likes
Kwon
Level 1
Level 1
5 sign-ins First solution authored First reply posted

I solved this problem. 

CAN Example defined  500kbs  but I checked 250kbs with oscilloscope.

I changed value(10->5) of prescaler Because I used 8Mhz crystal.

Success CAN Communication

 

 

0 Likes
Kavya_B
Moderator
Moderator
Moderator
100 replies posted 10 likes given 25 solutions authored

Hi,

 

Good to know that the issue is resolved.

 

Regards,

Kavya

0 Likes