Hi,
I have test the code in this example:
https://github.com/stm32duino/STM32Exam ... llback.ino
The LED do not blink
[SOLVED]Hardwaretimer do not work on Maple Mini
[SOLVED]Hardwaretimer do not work on Maple Mini
Last edited by Ralf9 on Sun Jan 26, 2020 8:23 am, edited 1 time in total.
Re: Hardwaretimer do not work on Maple Mini
You use the master of the library which has this change:
https://github.com/stm32duino/STM32Exam ... 0a3352f716
Use the last release then it should work with the last official release.
Or use the core repository which has the linked change.
https://github.com/stm32duino/STM32Exam ... 0a3352f716
Use the last release then it should work with the last official release.
Or use the core repository which has the linked change.
Re: Hardwaretimer do not work on Maple Mini
Thank you, when I insert this
before
then it works.
Is this needed
Or can I on the Maple Mini always use
and setMode with channel 2?
Code: Select all
MyTim->setMode(2, TIMER_OUTPUT_COMPARE);
Code: Select all
MyTim->setOverflow(31*1000, MICROSEC_FORMAT);
Is this needed
Code: Select all
#if defined(TIM1)
TIM_TypeDef *Instance = TIM1;
#else
TIM_TypeDef *Instance = TIM2;
#endif
Code: Select all
TIM_TypeDef *Instance = TIM1;