After checking other parts of the code (trng_api.c and a few other board platforms (NUCLEO_F413ZH, ...)) it appears that even though the reset value defaults correctly it may be good practice to keep the HAL_RCCEx_PeriphCLKConfig statement that selects the HSI48CLK as source for USB/RNG.
|
---|
|
targets/TARGET_STM/TARGET_STM32G4/TARGET_STM32G431xB/system_clock.c |
---|