Infineon TC297 Multican Normal mode

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

cross mob
lP3i
Level 1
Level 1
First question asked Welcome!

Hello! 

Does anyone have the code example of MultiCAN in normal Mode for Infineon TC297? I have tried to modify the Aurix code example, but it works in LoopBack mode, and it doesn't is just change the mode. 

thanks.

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/MULTICAN_1_KIT_TC297_TFT

https://www.infineon.com/dgdl/Infineon-MULTICAN_1_KIT_TC297_TFT-Training-v01_03-EN.pdf?fileId=5546d4...

 

0 Likes
1 Reply
lams_007
Level 1
Level 1
First reply posted Welcome!

Hi, I am also having some troubles with MultiCan but on TC299, I have seen the MULTICAN_1_KIT_TC297_TFT and as far as I can tell you int function that is named "void initMultican(void)", Inside you will find the another function called " IfxMultican_Can_Node_init(&g_multican.canSrcNode, &g_multican.canNodeConfig);" Here is the HW configuration for the module but since it is in loopback mode they are no TX and RX pins configured basically you have to do something like this

g_multican.canNodeConfig.loopBackMode = TRUE;
g_multican.canNodeConfig.nodeId = IfxMultican_NodeId_0;
g_multican.canNodeConfig.pinDriver = "Your Needs";
g_multican.canNodeConfig.rxPin = "Your Needs";
g_multican.canNodeConfig.rxPinMode = "Your Needs";
g_multican.canNodeConfig.txPin = "Your Needs";
g_multican.canNodeConfig.txPinMode = "Your Needs";

 

Where "your needs" are the configuration you have for routing the outputs.

 

Basically check that the "g_multican.canNodeConfig" is configured they way you need it. This structure includes the loopback mode, you can enable and disbale it here, I am not sure if you need to disable it to be able to send messages. But maybe you need to disable it

BR

Luis

0 Likes