TC367 CAN questions for KIT_A2G_TC367_5V_TFT

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.
zhouyi_NJ
Level 3
Level 3
50 sign-ins 10 questions asked 10 replies posted

hello,

I'm trying to setup CAN communication on KIT_TC367_5V_TFT, with support of iLLD.

could you please give me support on following TC367 questions? 

1.HW: Terminal resistor s(120Ohm) should be added to both TC367 KIT side and CANoe side? (X202)

2. The example "How to use the CAN interface driver" in help document iLLD_UM_TC39B is taken as reference. 

zhouyi_NJ_1-1665063153940.png

 

questions are:

1.  Shall P20.7 and P20.8  be initialized for CAN Rx/Tx? its default usage is GPIO?

2.  In this example Node0 is set to reception node, and Node 1 is transmission node. From user Manual, the 64 message buffers can be initialized as received buffer to received dedicated CAN ID frame, or be initialized as transmission buffer.  Is my understanding correct?

zhouyi_NJ_0-1665063128257.png

3.  Following codes are used in the example, but what is the value of MODULE_CAN0_RAM?

zhouyi_NJ_2-1665063213904.png

(since MODULE_CAN0_RAM is not initialized correctly, the  SW runs into trapper during CAN initialization.

The whole project (Aurix development studio) zip package is attached for your reference. 

It is highly appreciated If a complete TC367 CAN example code package is provided

thanks and BR

Zhou Yi

0 Likes
2 Replies
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Hi Zhou,

For 120Ohm resistence, the PCB of Triboard generally has one, please check your sch for details. Below is from Triboard User Manual TC3X7.

dw_0-1665118748892.png

 

The background knowledge of 120Ohm is for your reference.

For P20.7 and P20.8, you should check your sch and source code to double confirm Tx and Rx pin's definition.

dw_1-1665118869397.png

 

For example, above sch shows two pairs for CAN Rx and Tx pins that is P23.0/1, P00.0/1.

There is CAN example codes in ADS(Aurix Development Studio), you can click File -> Import, or you can also access github for those codes.

dw

0 Likes
zhouyi_NJ
Level 3
Level 3
50 sign-ins 10 questions asked 10 replies posted

hello, 

thank you very much.

There is no CAN examples  for TC367 on github , hopefully examples for TC397 can also be taken as reference. 

BR

ZhouYi

0 Likes