Question
SysTick and DMA interrupt priorities
Posted on November 20, 2015 at 08:46
Hello,
I noticed that in the code generated by CubeMX SysTick interrupt is assigned the highest priority (0). And DMA interrupts (I didn't yet use any others) get assigned the same priority too. However, DMA ISR use HAL_GetTick() function to determine timeout and thus there is a possibility to lock the execution. The solution is to assign priority higher than 0 to ISRs that might use HAL_GetTick(). I'd propose firmware team take that as change request and assign all those ISRs priority 1 automatically in code generation.Happy coding,Roman. #isr-systick