CAN for KIT_A2G_TC377_SEC_GTW

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

cross mob
Nikhil_U
Level 1
Level 1
First like given 5 questions asked 10 sign-ins
Hello, I am using the TC377_SEC _GTW controller, as I need to remove the loopback of the CAN, and have to make transmit\receive for external PCAN. So, from the datasheet, I have configured the registers, "LBM", and "LOUT" to zero, but still, I am not able to transmit or receive the data through the CAN. As we configured the CAN for "CAN0, Node0". Can anyone give some suggestions to make the transmission and reception work through the external PCAN? Thanks, Nikhil.
0 Likes
1 Solution
Nambi
Moderator
Moderator
Moderator
50 likes received 5 likes given 100 solutions authored

Hi Nikhil,

Please refer to the below thread for using external CAN communication.

https://community.infineon.com/t5/AURIX/Cannot-get-CAN-to-transmit-and-receive-on-same-node-external...

Best Regards.

View solution in original post

4 Replies
Nambi
Moderator
Moderator
Moderator
50 likes received 5 likes given 100 solutions authored

Hi Nikhil,

Please refer to the below thread for using external CAN communication.

https://community.infineon.com/t5/AURIX/Cannot-get-CAN-to-transmit-and-receive-on-same-node-external...

Best Regards.

lock attach
Attachments are accessible only for community members.
Nikhil_U
Level 1
Level 1
First like given 5 questions asked 10 sign-ins

Hi Nambi,

I followed the instructions given in the thread, but still, I am not able to transmit or receive the message through the external PCAN.
So, anything needs to be changed apart from that?

For reference I have attached my project.

 

Thanks and regards,

Nikhil.

0 Likes
Nambi
Moderator
Moderator
Moderator
50 likes received 5 likes given 100 solutions authored

Hi,

Can you try the following steps?

a) Start with the existing loopback example and ensure that internal loopback works.

b) Then odify that as discussed in https://community.infineon.com/t5/AURIX/Cannot-get-CAN-to-transmit-and-receive-on-same-node-external....

Best Regards.

0 Likes
Nikhil_U
Level 1
Level 1
First like given 5 questions asked 10 sign-ins

Hello Nambi,

Thank you for your reply,

As you told I have first checked the example and it's working fine.

And secondly, the modified code I have tested and here, I am not getting the data and it's getting stuck in the "IfxCan_Status_notSentBusy". In the first iteration, it will not stuck but in the second iteration it's getting stuck in the infinite loop.

And even I am not getting the data in the first iteration also.

So, any configurations are required apart from the "modified CAN.c" that you have shared?

 

Thanks,

Nikhil.

0 Likes