it seems cube does not take care of time TIMPRE x4 multiplier for the AHB1 timer clock
Hi Uwe Bonnes ,
Please make sure that the TIM Prescaler selection is enabled from RCC configuration tab:
thanks for the hint. However when setting the frequency field for AHB1 timer clock to 200 Mhz, cube tries hard to find a solution, but does not come up with the "TIM Prescaler selection from RCC configuration".
I' am not able to reproduce the issue that you describe :
Could you please share your *ioc file for check?
do it the other way round. Start with a new project, change to the clock configuration view, set up PLL to run at highest speed, correct all AHB/APB prescalers so that all bus speeds are in the limit. Now the ABPx timer clocks are twice the value of the corresponding ABPx clock. No change the APB1 timer clock frequency input field to the value of HCLK. Cube starts to find a solution, but does not come up with TIMPRE and offers no solution. Cube should consider TIMPRE in that case.
Hi Uwe Bonnes,
I followed all steps that you describe but I am not able to reproduce your issue.
So could you please share the STM32CubeMX.log file that you find under your user directory in the .stm32cubemx folder?
I don´t see a possibility on this page to share a file...
Hi Uwe Bonnes ,
Please use advenced editor
Her the logfile.
Thank you. I will share the file with our MX team for further check.Sorry for the inconvenience it may bring.
B.t.w., when replying to the ¨Inbox"view , ¨Use advanced editor" is not offered. With Inbox I mean ¨https://community.st.com/inbox¨ after login
Please note the following feature on CubeMX clock tree. By right clicking the clock tree, you can lock a value you want to remain unchanged (HCLK here), then to reach 200MHz for the timer the timer pre-scaler will be adjusted fine.
Retrieving data ...