dadude11
(Da Dude)
August 14, 2020, 9:54pm
1
Hi there,
I have a custom board. It is based on NUCLEO STM32F901 schematics, except… that i use a PWM on PB_10.
Unfortunatly, PB_10 cannot be used by PWM because it uses Timer 2, and that timer is the us_ticker of Mbed OS.
How can i change the us_ticker to another one ?
Thank you !
JojoS
(Johannes Stratmann)
August 15, 2020, 5:39pm
2
It is defined here:
https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32F0/TARGET_STM32F091xC/device/us_ticker_data.h
But there is no configuration setting for the timer, so the clean solution is to create a custom target.
dadude11
(Da Dude)
August 15, 2020, 8:19pm
3
Thank you ! I’m effectively working on a brand new target, inherited from NUCLEO-F901.
JojoS
(Johannes Stratmann)
August 15, 2020, 8:38pm
4
Sounds like a really new target, sure it is a F901?
dadude11
(Da Dude)
August 15, 2020, 8:56pm
5
Oups my bad, STM32F091 ;D
JojoS
(Johannes Stratmann)
August 15, 2020, 9:02pm
6
Damned, thought I catcht a secret prototype
Good success!
1 Like