Skip to main content
Manoj Hiwarkar
Associate III
September 11, 2018
Question

CAN Example code

  • September 11, 2018
  • 3 replies
  • 692 views

I need a CAN hal example code for stm32f103.

    This topic has been closed for replies.

    3 replies

    Khouloud GARSI
    Technical Moderator
    September 12, 2018

    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.

    Tesla DeLorean
    Guru
    September 12, 2018

    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    Manoj Hiwarkar
    Associate III
    September 12, 2018

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