I have jumped from 18.2.x r12272 to 18.2.2 after the 18.2.2 announce, and i have one project that does not compile anymore.
This project (F405) need 8 ICU timers, so, since no timer where left for tickless scheduler, i have used periodic systick, and the project is running perfectly fine with 18.2.x r12272
When trying to recompile with 18.2.2, chibios is complaining that timer 2 is in use and cannot be used for scheduling, even in periodic systick mode
(#define CH_CFG_ST_TIMEDELTA 0)
Is there something that have changed, and macro that has to be set to disable the need of scheduling timer when using classic periodic scheduler ?
Bug seems to be introduced by new check on file hal_st_lld.h @revision 12479
My real question is
Does chibios really need another timer than SYSTICK no matter if we use periodic or tickless scheduler (in this case, my code was wrong, and previous chibi revision was just not checking that)
Chibios only need SYSTICK when using periodic scheduler, and checks on file hal_st_lld.h just need to be more specific :
Code: Select all
+#if defined(STM32_TIM2_IS_USED) && (CH_CFG_ST_TIMEDELTA > 0)
for all the timers solve the compilation problem.
thanks for enlighting me on this point.