Skip to main content
Ss.61
Associate III
Jun 8, 2021 8:17 AM UTC
Solved

STM32F042G6 CAN TX & RX example.

* 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.
Imen GH
Imen GHBest answer
ST Employee
Jun 8, 2021 1:28 PM UTC

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
Jun 8, 2021 1:28 PM UTC

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
Jun 11, 2021 9:09 AM UTC

Thank you very much for your reply.

Ss.61
Ss.61Author
Associate III
Jun 11, 2021 9:09 AM UTC

Thanks for your reply