2021-09-29 12:51 AM
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!
2021-09-29 05:08 AM
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"?
2021-09-29 08:24 AM
A simple workaround would be modifying the systick period and set a static counter in the IRQ, calling HAL timer function every 10 interrupts.