cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 CAN Bus not receiving messages, works in Loopback, transmits in Normal

Aaronium
Associate III

Hello,

I am trying to get the CAN Bus on a Nucleo F446RE to receive messages from an ECU, but it will not. The STM32 has been tested in loopback mode and is able to trigger the interrupt and process the data upon receiving the message, and the STM32 is also able to send TX messages in normal mode, verified with a logic analyzer. The ECU is also sending messages and being processed accordingly by the CAN transceiver (confirmed with the analyzer), to where the signal is being received on the CAN RX pin (PA11). I have tried tinkering with the filter but do not fully understand it.

Both the ECU and STM32 are configured for a CAN rate of 250 kbps, and the STM32 has been tested with an HSE Bypass and the HSI. The STM32's CAN TX and RX pins have been tested with and without pullups.

If anyone has any ideas or suggestions regarding this I would appreciate it so much.

1 REPLY 1
Aaronium
Associate III

Turns out the ECU I was using for testing ran at a different frequency (500 kHz) than expected. Sorry for the trouble!