Skip to main content
Visitor II
September 29, 2021
Question

SysTick configuration using HAL

  • September 29, 2021
  • 2 replies
  • 1786 views

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!

    This topic has been closed for replies.

    2 replies

    Graduate II
    September 29, 2021

    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"?

    Graduate
    September 29, 2021

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