Skip to main content
MSzła.1
Associate III
June 12, 2023
Question

Can't receive any CAN data on STM32F303CCT6

  • June 12, 2023
  • 0 replies
  • 1083 views

Hello I tried to receive any CAN signal on my device based on STM32F303CCT6. Maybe you have solution :), CAN pins are remapped on PB9 and PB8 pins by STMCubeMX configurator

Below my code (main.c):

https://pastecode.io/s/7av2ge6m

and my settings in configurator:


_legacyfs_online_stmicro_images_0693W00000dDdRcQAK.png
_legacyfs_online_stmicro_images_0693W00000dDdRhQAK.png
_legacyfs_online_stmicro_images_0693W00000dDdRmQAK.pngI also set CAN RX pull HIGH using the internal pull-up, like in the tutorial https://controllerstech.com/can-protocol-in-stm32/

Thanks for help

This topic has been closed for replies.