cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F042G6 CAN TX & RX example.

Ss.61
Associate III

* 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

1 ACCEPTED SOLUTION

Accepted Solutions
Imen GH
ST Employee

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

View solution in original post

3 REPLIES 3
Imen GH
ST Employee

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
Associate III

Thanks for your reply

Thank you very much for your reply.