cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Example code

Manoj Hiwarkar
Associate III

I need a CAN hal example code for stm32f103.

3 REPLIES 3
Khouloud GARSI
Lead II

Hi @Manoj Hiwarkar​ ,

There is an example under STM32CubeF1 firmware package (runs on STM32F103xG devices).

You may found it under the path below:

STM32Cube_FW_F1_V1.6.1\Projects\STM3210E_EVAL\Examples\CAN\CAN_Networking

The example shows how to configure the CAN peripheral in order to send and receive CAN frames in normal mode. 

Khouloud.

Also understand that on the F103 you can't do USB and CAN at the same time.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Manoj Hiwarkar
Associate III

ok. One more thing, is STM32F103 compatible with MCP2516 tranciever ?