cancel
Showing results for 
Search instead for 
Did you mean: 

SysTick configuration using HAL

OBorr.1
Associate II

Hello Community, doing a project, I need a Sys clock with 100us period, however, when I try to configure the systick through the CUBEMX I can't so, I'm asking if there's any possibility to configure it through HAL code.

Right now I get a period of 1ms.

Thanks!

2 REPLIES 2
Piranha
Chief II

No, it's impossible with the HAL. One can configure it easily outside the HAL, but then all the HAL/Cube tick based timings will fall apart because the broken bloatware named HAL doesn't work with tick periods smaller than 1 ms. Why? Because it's made by blatantly incompetent people.

P.S. And what does this have to do with "Switches and Multiplexers"?

DavidAlfa
Senior II

​A simple workaround would be modifying the systick period and set a static counter in the IRQ, calling HAL timer function every 10 interrupts.