cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for minimal/basic CAN bus example code for the F103 and/or F423

AWu
Associate II

Dear experts,

I'd be grateful if you could point me to some basic CAN bus example code for the F103 (blue pill) which later may be ported to the F4xx family (most likely F423)

Thanks for your help!

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

Hello,

You can get inspired from the CAN example available in the STM32CubeF1 firmware package to configure the CAN peripheral to send and receive CAN frames in normal mode: STM32Cube_FW_F1_V1.7.0\Projects\STM3210E_EVAL\Examples\CAN\CAN_Networking

There are also many CAN examples with STM32CubeF4 firmware package.

Best Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

Hello,

You can get inspired from the CAN example available in the STM32CubeF1 firmware package to configure the CAN peripheral to send and receive CAN frames in normal mode: STM32Cube_FW_F1_V1.7.0\Projects\STM3210E_EVAL\Examples\CAN\CAN_Networking

There are also many CAN examples with STM32CubeF4 firmware package.

Best Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
AWu
Associate II

Thanks, Imen!

Ozone
Lead II

IMHO Cube examples don't fit a "minimal/basic" description very well.

At least for the F103, SPL-based (Standard Peripheral Lib) examples are available. The SPL examples highlight the setup process better than the convoluted Cube code. I had tried some while ago with a Cube-based F74x example, and fell back to the MCB1760 (NXP).

I think for the F42x, SPL code might be available too.