Question
Does anybody have experience with changing sysclk prescalers on the fly?
Hello,
working with STM32H742, I need 480 MHz in some parts of my code while on the other hand I need to save energy. That's why I came to think about changing D1CPRE and HPRE between (1, 8) and (8, 1) to (maximize , lower) sysclk while keeping the APB clks the same. Both, D1CPRE and HPRE are in the same register, RCC_D1CFGR, so I can change them in one instruction. Still I wonder what will exactly happen then, especially two questions:
- will the system remain stable or is there a chance for a crash?
- will timers (eg) keep running at the same input frequency or is there a chance for glitches or other disturbance?
Is there someone who has experience on this?
Thanks a lot
Martin
