Skip to main content
Graduate
July 10, 2024
Solved

HSI vs HSE for CAN

  • July 10, 2024
  • 2 replies
  • 1162 views

Hi,

On an Stm32f4 based board, we have the external crystal (8MHZ) mounted. The Firmware however uses HSI clock. 

Does the HSI drift have an impact on CAN communication with another device over a long period of time(say weeks)? Is it recommended to use HSE instead? 

Thank you in advance for your inputs.

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

    Hello,

    We don't recommend to use any of the RC-based internal clock sources such as HSI/MSI/CSI etc for CAN communication as it can drift over time. This is mainly when Normal mode is used. These internal clock sources may impact communication performance as they could be influenced by different factors (temperature/voltage/reflow effects/ mechanical effects etc.). We recommended using HSE with an external crystal or another precise clock source (Ex: crystal oscillator) in bypass mode.

    2 replies

    Graduate II
    July 10, 2024

    I don't know how "good" the F4's HSI is, on F7 and H7 it is quite jittery, so with these I wouldn't use the HSI for anything.

    But what do the HSI specs say about drift? Anything in the datasheet?

    mƎALLEmAnswer
    Technical Moderator
    July 10, 2024

    Hello,

    We don't recommend to use any of the RC-based internal clock sources such as HSI/MSI/CSI etc for CAN communication as it can drift over time. This is mainly when Normal mode is used. These internal clock sources may impact communication performance as they could be influenced by different factors (temperature/voltage/reflow effects/ mechanical effects etc.). We recommended using HSE with an external crystal or another precise clock source (Ex: crystal oscillator) in bypass mode.