Skip to main content
Explorer
April 3, 2024
Solved

ADC Values transfer from one STM32F446RE to another STM32F446RE with CAN Bus

  • April 3, 2024
  • 1 reply
  • 884 views

Hi 

 

I am here to seek help from the community.I am a Research Student I just want to know how to send  ADC values from one  STM32F446RE to other  STM32F446RE (i have two). and I am using MCP2515 Transceivers at both ends.

need help in this 

 

thanks.

Murali.

 

 

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello,

    MCP2515 is not a transceiver but it's a CAN controller using SPI interface.  You need to add a transceiver to use this kind of controller.

    Are you sure this is the right part number? if yes, why are you using an external CAN controller while STM32F446 already embeds two CAN instances?

    I can recommand either SN65HVD230 or MCP2562 as CAN 2.0 transceivers.

    Example of schematics from STM32446E-EVAL board:

    SofLit_0-1712182465215.png

     

    Start using loopback mode for first CAN tests. You can inspire from this example: https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM32446E_EVAL/Examples/CAN/CAN_Loopback

    Then if all went fine, move to normal mode. You can inspire from this example: 

    https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM324x9I_EVAL/Examples/CAN/CAN_Networking

    1 reply

    mƎALLEmAnswer
    Technical Moderator
    April 3, 2024

    Hello,

    MCP2515 is not a transceiver but it's a CAN controller using SPI interface.  You need to add a transceiver to use this kind of controller.

    Are you sure this is the right part number? if yes, why are you using an external CAN controller while STM32F446 already embeds two CAN instances?

    I can recommand either SN65HVD230 or MCP2562 as CAN 2.0 transceivers.

    Example of schematics from STM32446E-EVAL board:

    SofLit_0-1712182465215.png

     

    Start using loopback mode for first CAN tests. You can inspire from this example: https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM32446E_EVAL/Examples/CAN/CAN_Loopback

    Then if all went fine, move to normal mode. You can inspire from this example: 

    https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM324x9I_EVAL/Examples/CAN/CAN_Networking