File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
TARGET_STM32G4/TARGET_STM32G474xx/TARGET_NUCLEO_G474RE Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
105
105
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
106
106
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSE ;
107
107
RCC_OscInitStruct .PLL .PLLM = RCC_PLLM_DIV6 ;
108
+ //! 170MHz as a core frequency for FDCAN is not suitable for many frequencies,
109
+ //! as it provides low accuracy. When no FDCAN is used, the full capacity of 170 MHz
110
+ //! should be standard.
108
111
#if DEVICE_CAN
109
112
RCC_OscInitStruct .PLL .PLLN = 80 ;
110
113
#else
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ int can_frequency(can_t *obj, int f)
287
287
#else
288
288
// STM32H7 doesn't support yet HAL_RCCEx_GetPeriphCLKFreq for FDCAN
289
289
// Internal ST ticket 92465
290
- int ntq = 10000000 / hz ;
290
+ int ntq = 10000000 / f ;
291
291
#endif
292
292
293
293
int nominalPrescaler = 1 ;
You can’t perform that action at this time.
0 commit comments