Page 1 of 1
WeAct STM32F411CUE6 systick and timers
Posted: Thu Jul 30, 2020 12:24 am
by rwcooper
Hi, I'm looking for basic information regarding systick and timers. Is there a way to specify a callback function for systick? For timers I have only been able to successfully use an id of -1, which I believe is for a software timer. I'd like to be able to specify hardware timers but don't know if this is supported for this board and if it is what are the id's I should be using. I don't know where to look to find this information. Any help is greatly appreciated. Thanks...Randy
Re: WeAct STM32F411CUE6 systick and timers
Posted: Thu Jul 30, 2020 12:49 am
by jimmo
Not for SysTick directly (although the machine.Timer(-1) is based on SysTick).
I know you're not using a pyboard, but the pyb module is available on all STM32 boards and includes ways to access the STM32 functionality such as timers (not all of this has been moved over to the machine module yet).
https://docs.micropython.org/en/latest/ ... Timer.html
Re: WeAct STM32F411CUE6 systick and timers
Posted: Thu Jul 30, 2020 1:20 am
by rwcooper
jimmo wrote: ↑Thu Jul 30, 2020 12:49 am
Not for SysTick directly (although the machine.Timer(-1) is based on SysTick).
I know you're not using a pyboard, but the pyb module is available on all STM32 boards and includes ways to access the STM32 functionality such as timers (not all of this has been moved over to the machine module yet).
https://docs.micropython.org/en/latest/ ... Timer.html
Thanks, I'll read up on the pyb module and give it a try.
Re: WeAct STM32F411CUE6 systick and timers
Posted: Thu Jul 30, 2020 1:23 am
by scruss
If you're associating timers with specific pins, the contributed WeAct pinout diagram is useful:
https://github.com/WeActTC/MiniF4-STM32 ... Balint.png
Re: WeAct STM32F411CUE6 systick and timers
Posted: Thu Jul 30, 2020 12:31 pm
by rwcooper
Thanks, I already have this diagram.