I selected M=15, N=144, P=4, Q=5, AHBP=1, APB1=2, APB2=1 which gives 60MHz System Clock and 48MHz USB Clock.
I've got the Error:
Code: Select all
chibios_trunk/os/hal/ports/STM32/LLD/TIMv1/hal_st_lld.c:322:2: error: #error "the selected ST frequency is not obtainable because integer rounding"
which comes from:
Code: Select all
#if ST_CLOCK_SRC % OSAL_ST_FREQUENCY != 0
#error "the selected ST frequency is not obtainable because integer rounding"
#endif
Chibios uses Timer 2 (32bit).
How can i fix this?
Thanks.
Robert