WeAct STM32F411CUE6 systick and timers

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
rwcooper
Posts: 5
Joined: Thu Jul 30, 2020 12:14 am

WeAct STM32F411CUE6 systick and timers

Post by rwcooper » Thu Jul 30, 2020 12:24 am

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

User avatar
jimmo
Posts: 1838
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: WeAct STM32F411CUE6 systick and timers

Post by jimmo » 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

rwcooper
Posts: 5
Joined: Thu Jul 30, 2020 12:14 am

Re: WeAct STM32F411CUE6 systick and timers

Post by rwcooper » Thu Jul 30, 2020 1:20 am

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.

scruss
Posts: 12
Joined: Sat Aug 12, 2017 2:27 pm

Re: WeAct STM32F411CUE6 systick and timers

Post by scruss » Thu Jul 30, 2020 1:23 am

If you're associating timers with specific pins, the contributed WeAct pinout diagram is useful:
https://github.com/WeActTC/MiniF4-STM32 ... Balint.png

rwcooper
Posts: 5
Joined: Thu Jul 30, 2020 12:14 am

Re: WeAct STM32F411CUE6 systick and timers

Post by rwcooper » Thu Jul 30, 2020 12:31 pm

scruss wrote:
Thu Jul 30, 2020 1:23 am
If you're associating timers with specific pins, the contributed WeAct pinout diagram is useful:
https://github.com/WeActTC/MiniF4-STM32 ... Balint.png
Thanks, I already have this diagram.

Post Reply