HSE Crystal Oscillator and FDCAN on STM32C092: message is not being sent
ST moderator edited the title to give more visibility on the issue/subject
Hello,
I have a board with an STM32C092KCU6 where the main clock is using the HSI48 internal oscillator but I also have an 8MHz crystal for the HSE oscillator to use for FDCAN for higher precision. When the HSE is clocking just the FDCAN module the CAN does not work.
I can get the CAN to work by using HSI48 as the FDCAN clock source. I can also get the CAN to work if I use HSE as the main clock (but it is too slow) or if I enable the clock output MCO2 with HSE as its source or also if I enable the RTC module and set HSE as its source.
So it seems that the HSE oscillator will only work if it is being used on FDCAN + one other place.
|
Osc for core
|
CAN clk
|
RTC clk
|
MCO2
|
CAN working?
|
|
HSI48
|
HSE
|
-
|
-
|
No
|
|
HSE
|
HSE
|
-
|
-
|
Yes
|
|
HSI48
|
INT
|
-
|
-
|
Yes |
|
HSI48
|
HSE
|
HSE
|
-
|
Yes |
|
HSI48
|
HSE
|
-
|
HSE
|
Yes |
|
HSI48
|
HSE
|
-
|
HSI48
|
No
|
I first thought this was a gain margin or a drive problem but I calculated that Gm is 7.57 for the crystal I have used. Also, my colleague has tried this on a C092 Nucleo board and says he can see the same thing.
Any clues as to what the problem might be would be appreciated.
Many thanks.
