S32K144 CAN_pal example Loop back

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K144 CAN_pal example Loop back

ソリューションへジャンプ
3,631件の閲覧回数
kimmk
Contributor III

Hello sir,

I opened example project about can_pal.

I tired to loop back test, so changed CAN components Operation Mode from 'normal' to 'loop back'.

and added some count values to check tx, rx message was operating well. please check additional files.

but it didn't work. talk about details,

when pin interrupts happened CAN message transmit whereas transceiver didn't receive message.

please help about this issue and need some more details add comment.

regards.

Kim.

タグ(4)
0 件の賞賛
返信
1 解決策
3,559件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi minkyu kim,

For normal mode, after the slave board send message, then master board will receive RX_MSG_ID(2UL) and toggle LEDs.

RX_MSG_ID.png

But you are using loop back mode, the message ID that you send was "TX_MSG_ID   (1UL)", it did not match the "RX_MSG_ID   (2UL)".

You can try to modify the value of them. When the value are same, the LEDs will work in loop back mode.

For example, modify:

RX_MSG_ID   (1UL)

Then after press SW2 and SW3, the LED will show RED or GREEN.

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

3 返答(返信)
3,559件の閲覧回数
kimmk
Contributor III

Hi, Robin.

Thank you for your reply. I tired your advice and it works!

Additionally i have some question.

Maybe I use FlexCAN example(flexcan_encrypted_s32k144) it also match Tx_ID & Rx_ID when using Loop back mode?

Thank you for your support.

Minkyu.

0 件の賞賛
返信
3,559件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Yes. You are right.

0 件の賞賛
返信
3,560件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi minkyu kim,

For normal mode, after the slave board send message, then master board will receive RX_MSG_ID(2UL) and toggle LEDs.

RX_MSG_ID.png

But you are using loop back mode, the message ID that you send was "TX_MSG_ID   (1UL)", it did not match the "RX_MSG_ID   (2UL)".

You can try to modify the value of them. When the value are same, the LEDs will work in loop back mode.

For example, modify:

RX_MSG_ID   (1UL)

Then after press SW2 and SW3, the LED will show RED or GREEN.

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------