Skip to main content
Associate III
April 24, 2024
Question

STM32F412 CAN Transmits unexpected data

When I trigger a transmit of a test CAN message on CAN bus 2 the CAN module transmits unexpected data when I look at CAN bus with a logic analyzer. PCAN does receive the unexpected message and it does acknowledge the massage.

TxTestMsgCode.jpg

Here is what I see on the CAN Bus.

UnexpectedDataTX.jpg

PCAN Receive:

 

 

PCAN_RX_Unexpected message.jpg

 

 

This topic has been closed for replies.

1 reply

Karl Yamashita
Principal
April 24, 2024

Set your variables to global. Once your leave the SendCAN_Message function, the variables are destroyed. 

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source