STM32CubeIDE/MX bug STM32H753 problems with clock configuration and HAL initialization
- May 14, 2021
- 7 replies
- 3447 views
Hi,
I have an IOC project attached which produce total garbage.
This project was oroginal made to use HSE 8MHz quartz and LSE 32.768KHz quartz. The I changed to use HSI and LSI an there was clock errors which I couldnt se what it is. I made the mistake to use clock resolver (most useless function in Cube) then I had total garbage (the attachment).
1.) When I select HSI or CSI as clock source, I get error that I have to use HSE as clock even when HSE is disabled??????
2.) When I select whatever, divide by x to get 4MHz, Multilpy with 100 then devide by 2, I get a sysclk of 201.5. The calculator calculates wrong. Where comes the 1.5MHz extra????
3.) The I tried to select HSI as source and wanted to adjust dividers and multipliers to get 400MHz sysclk but its not possible to do thst because it changes all the time the values what I never asked for it.
4.) When I produce the project. The result will not work at all because in the TIM7 ISR there is empty and there is no call to clockl ISR function. The system hangs after HAL initilization becaus only the TIM7 ISR is called and because of missing of the call to ISR function, nothing else will happen except the ISR call. System is dead. It was also happened that there was no TIM7 ISR generated at all.
Generally the function resolve clock issues is the most useless function in cube and I never had a useable result after using this funtion.
How can I get this IOC runnung? I was a huge job to make it and when I have to start from scartch, it costs me a lot of time.
best regards,
Osto
