NUCLEO H755ZI-Q - Clock Configuration Question
Hello everyone,
I'm having a hard time with the clock configuration on my NUCLEO board, which is probably related to my limited experience with STM32, so apologies if it's a dumb question.
I was testing around with said NUCLEO board and the STM32CubeIDE. I loaded up the preset for the board and got my testcode working. Then I noticed, that the SYSCLK was set to 64MHz by default. Since the CPU1 can go up to 480MHz I tried increasing that value to 400MHz and let CubeIDE find a solution. I updated the prescalers for my peripherals and timers and uploaded the code again.
But after the increased clock-frequency, most of my code broke. Timers 3-5 seem to work as expected, but for example Timer 2 is set to ellapse after 800 counts which at 200MHz should equal 4µs, seems to have a duration of 8µs when setting a pin and observing with an oscilloscope. Also lots of steps seem to be skipped, since my generated pattern is missing more than half of it's pulses (the toggling is done when Timer 2 ellapses).
This seems highly counterintuitive to me, since in theory I just sped up the CPU. Is it maybe a limitation of the NUCLEO board? I'm currently using the stock board and powering it via USB and the ST-Link debugger.
I've attached both IOC-files so if someone could take a look and give me some hints, it would be greatly appreciated.
Thanks in advance,
Sebastian
