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

AURIX™ Forum Discussions

User17875
Level 1
Level 1
hi everyone.

I have got some problem that my CAN is not working using iLLD example source.

it is working well on tc233 triboard
{
canNodeConfig.nodeId = (IfxMultican_NodeId)((int)IfxMultican_NodeId_0);
canNodeConfig.rxPin = &IfxMultican_RXD0E_P33_7_IN;
canNodeConfig.rxPinMode = IfxPort_InputMode_pullUp;
canNodeConfig.txPin = &IfxMultican_TXD0_P33_8_OUT;
canNodeConfig.txPinMode = IfxPort_OutputMode_pushPull;
canNodeConfig.transferInterrupt.enabled = FALSE;
canNodeConfig.alertInterrupt.enabled = FALSE;

IfxMultican_Can_Node_init(&g_Can.drivers.lCanNode, &canNodeConfig);
}

/* Initialize Node 1 */
{
canNodeConfig.nodeId = (IfxMultican_NodeId)((int)IfxMultican_NodeId_1);
canNodeConfig.rxPin = &IfxMultican_RXD1B_P14_1_IN;
canNodeConfig.rxPinMode = IfxPort_InputMode_pullUp;
canNodeConfig.txPin = &IfxMultican_TXD1_P14_0_OUT;
canNodeConfig.txPinMode = IfxPort_OutputMode_pushPull;
canNodeConfig.transferInterrupt.enabled = FALSE;
canNodeConfig.alertInterrupt.enabled = FALSE;

IfxMultican_Can_Node_init(&g_Can.drivers.vCanNode, &canNodeConfig);
}

but not working on custom board, tc234

{
canNodeConfig.nodeId = (IfxMultican_NodeId)((int)IfxMultican_NodeId_1);
canNodeConfig.rxPin = &IfxMultican_RXD1A_P15_3_IN;
canNodeConfig.rxPinMode = IfxPort_InputMode_pullUp;
canNodeConfig.txPin = &IfxMultican_TXD1_P15_2_OUT;
canNodeConfig.txPinMode = IfxPort_OutputMode_pushPull;
canNodeConfig.transferInterrupt.enabled = FALSE;
canNodeConfig.alertInterrupt.enabled = FALSE;

IfxMultican_Can_Node_init(&g_Can.drivers.lCanNode, &canNodeConfig);
}

/* Initialize Node for Vehicle CAN */
{
canNodeConfig.nodeId = (IfxMultican_NodeId)((int)IfxMultican_NodeId_2);
canNodeConfig.rxPin = &IfxMultican_RXD2A_P15_1_IN;
canNodeConfig.rxPinMode = IfxPort_InputMode_pullUp;
canNodeConfig.txPin = &IfxMultican_TXD2_P15_0_OUT;
canNodeConfig.txPinMode = IfxPort_OutputMode_pushPull;
canNodeConfig.transferInterrupt.enabled = FALSE;
canNodeConfig.alertInterrupt.enabled = FALSE;

IfxMultican_Can_Node_init(&g_Can.drivers.vCanNode, &canNodeConfig);
}
everything is same and i just changed PINs.

and i have tested both of triboard tc233, applicationKit tc234. then working well.

the error is bit0

5168.attach

please, tell me how to solve it or what should i check.

Thank you.
0 Likes
0 Replies