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();
HardwareTimer(TIM1) is now broken
HardwareTimer(TIM1) is now broken
Add before resume
Its a some kind of bug of 1.8.0 and will be fixed in 1.9.0
Go to full postCode: Select all
MyTim->setMode(1, TIMER_OUTPUT_COMPARE);
Its a some kind of bug of 1.8.0 and will be fixed in 1.9.0
Re: HardwareTimer(TIM1) is now broken
Add before resume
Its a some kind of bug of 1.8.0 and will be fixed in 1.9.0
Code: Select all
MyTim->setMode(1, TIMER_OUTPUT_COMPARE);
Its a some kind of bug of 1.8.0 and will be fixed in 1.9.0
Re: HardwareTimer(TIM1) is now broken
Thank you @stas2z, that fixed it.