Wrong tick period at 180MHz STM32F446RE
- March 29, 2021
- 2 replies
- 1428 views
hi everyone
i have a strange problem when i try to set clock frequency at high speed.
i'm using CubeMX to configure the system and developing on AtollicTrueStudio.
i’ve noticed some weird facts setting the clock frequency more than 120MHz.
first, is that the tick period result about 0.98ms. (at 180MHz)
doing osDelay(1000) and measuring with an oscilloscope the period of a digital pin toggling, the period is actually about 980ms.
with osDelay(100)->98ms.
i’ve configured the clock at 180MHz using the HSE, but here another problem, if from PLL source MUX i select HSE, 1 tick become 3.2ms instead of 1ms.
Selecting HSI from PLL source MUX, tick period become 0.98ms.
setting 120MHz and HSI everything work fine.
could someone reproduce this effect?
what's going on?
