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

AURIX™ Development Studio Forum Discussions

leekings
Level 2
10 replies posted 5 replies posted 5 sign-ins
Level 2

Hello. i'm exercising with example code included in Development studio.

 

I'm analyzing below example code, and try to understand ILLD usage method.

* \name MCMCAN_FD_1_KIT_TC375_LK
* \version V1.0.0
* \board AURIX TC375 lite Kit, KIT_A2G_TC375_LITE, TC37xTP_A-Step
* \keywords CAN, MCMCAN, AURIX, INTERRUPT, LOOP-BACK, CAN FD

https://www.infineon.com/aurix-expert-training/Infineon-AURIX_MCMCAN_FD_1_KIT_TC375_LK-TR-v01_00_00-...

But, i can't find the TXD, RXD port pin setting part. i think there are port setting part somewhere in 'MCMCAN_FD.c'.

please help me to find port setting part. 

 

thank you.

 

 

0 Likes
1 Solution
leekings
Level 2
10 replies posted 5 replies posted 5 sign-ins
Level 2

thank you for your replying.

 

The Loop-Back Mode was enabled, and there was comment about that. this example don't need external port pin, so don't need setting.

 

thank you again!

 

 

View solution in original post

0 Likes
4 Replies
dw
Moderator
Moderator 50 likes received 250 sign-ins 100 solutions authored
Moderator

Hi leekings,

RXD/TXD are in the IfxMultican_Can_Node_initConfig()

    config->rxPin                          = NULL_PTR;
    config->rxPinMode                      = IfxPort_InputMode_pullUp;
    config->txPin                          = NULL_PTR;
    config->txPinMode                      = IfxPort_OutputMode_pushPull;
    config->pinDriver                      = IfxPort_PadDriver_cmosAutomotiveSpeed2; //previously hardcoded as this value for Tx pins.Now pad driver option is being given in IfxMultican_Node_initRxPin() and IfxMultican_Node_initTxPin()

 

dw

0 Likes
leekings
Level 2
10 replies posted 5 replies posted 5 sign-ins
Level 2

dear dw, thank for replying.

I have still question. In sample code,  i know IfxMultican_Can_Node_initConfig() initialize rxPin, txPin.

But they are  set as NULL_PTR; ( = not assgined)

and this example code don't seems Loop-Back-Mode.

 

So i think there should be Tx,Rx pin setting in the code. but i can't find it.

 

is my logic correct?

 

sorry for basical question.

 

thank you.

 

does sample code working without physical wiring?

 

 

0 Likes
dw
Moderator
Moderator 50 likes received 250 sign-ins 100 solutions authored
Moderator

Hi leekings,

The code posted before is just from my project.

Please refer to your demo project, I think the define is different with mine.

dw

0 Likes
leekings
Level 2
10 replies posted 5 replies posted 5 sign-ins
Level 2

thank you for your replying.

 

The Loop-Back Mode was enabled, and there was comment about that. this example don't need external port pin, so don't need setting.

 

thank you again!

 

 

0 Likes