HardwareTimer(TIM1) is now broken
Posted: Tue May 12, 2020 1:37 am
Hello,
I just installed Platformio on a new PC. An app that builds and runs fine on the old PC builds fine builds fine on the new PC but no longer executes correctly.
The timer ISR has stopped firing.
The flash is also about 3800 bytes smaller. See code below.
To verify I updated the old PC to the new platform and the code no longer works on the old PC either.
Tks,
John
Orig platform(works):
- framework-arduinoststm32 3.10700.191028 (1.7.0)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
New updated platform(broken):
- framework-arduinoststm32 4.10800.200207 (1.8.0)
- tool-dfuutil 1.9.200310
- tool-openocd 2.1000.190707 (10.0)
- tool-stm32duino 1.0.2
- toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1)
Code Snippet:
HardwareTimer *myTim = new HardwareTimer(TIM1); // 1/27/20
myTim->setOverflow(10000, MICROSEC_FORMAT); // 1,000,000 = 1sec, 10,000 = 10mS
myTim->attachInterrupt(timerISR);
myTim->resume();
I just installed Platformio on a new PC. An app that builds and runs fine on the old PC builds fine builds fine on the new PC but no longer executes correctly.
The timer ISR has stopped firing.
The flash is also about 3800 bytes smaller. See code below.
To verify I updated the old PC to the new platform and the code no longer works on the old PC either.
Tks,
John
Orig platform(works):
- framework-arduinoststm32 3.10700.191028 (1.7.0)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
New updated platform(broken):
- framework-arduinoststm32 4.10800.200207 (1.8.0)
- tool-dfuutil 1.9.200310
- tool-openocd 2.1000.190707 (10.0)
- tool-stm32duino 1.0.2
- toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1)
Code Snippet:
HardwareTimer *myTim = new HardwareTimer(TIM1); // 1/27/20
myTim->setOverflow(10000, MICROSEC_FORMAT); // 1,000,000 = 1sec, 10,000 = 10mS
myTim->attachInterrupt(timerISR);
myTim->resume();