Skip to main content
Ss.61
Associate III
June 8, 2021
Solved

STM32F042G6 CAN TX & RX example.

  • June 8, 2021
  • 3 replies
  • 794 views

* I am using STM32F042G6,

*I need examle for CAN Bus both TX & Rx,

*Receive mode of (Interrupt)

*i am using cube ide:4.24.0

This topic has been closed for replies.
Best answer by Imen GH

Hello @Ss.6​,

I recommend you to have a look to the example under STM32Cube directory:

STM32Cube_FW_F0_V1.11.1\Projects\STM32072B_EVAL\Examples\CAN\CAN_Networking

This example can help you to configure the CAN peripheral to send and receive CAN frames

You can also follow the guide to import Cube projects from SW4STM32 to STM32CubeIDE:

Please refer to UM2579: Migration guide from System Workbench to STM32CubeIDE.

Imen

3 replies

Imen GH
Imen GHBest answer
ST Employee
June 8, 2021

Hello @Ss.6​,

I recommend you to have a look to the example under STM32Cube directory:

STM32Cube_FW_F0_V1.11.1\Projects\STM32072B_EVAL\Examples\CAN\CAN_Networking

This example can help you to configure the CAN peripheral to send and receive CAN frames

You can also follow the guide to import Cube projects from SW4STM32 to STM32CubeIDE:

Please refer to UM2579: Migration guide from System Workbench to STM32CubeIDE.

Imen

Ss.61
Ss.61Author
Associate III
June 11, 2021

Thank you very much for your reply.

Ss.61
Ss.61Author
Associate III
June 11, 2021

Thanks for your reply