2018-04-25 02:09 AM
Hello,
I found a bug in the latest version of CubeMX which causes the tick timer for HAL to be cleared in code if the corresponding timer pin is cleared.
Steps to reproduce:
1- Open project with any MCU.
2- Configure SYS to use Timebase source other than systick (here I use TIM14 for STM32F070F6)
3- Check that in NVIC 'Time base: TIMxxGlobal interrupt' should be Enabled(and grayed out)
4- go to pin configuration and set one of the pins that timer uses for the timer output purposes(for TIM14 here we have PB1 TIM14_CH1) and select it. (we can't use the pin because HAL is taking control of the time)
5- reset the pin.
6- the Time base interrupt is now disabled in step 3 which should not happen.
I think sometimes it also happens if you configure the same pin for GPIO input/output but i can't reproduce it.
#stmcube-bug2018-04-25 03:05 AM
Hello Daniel,
This is highlighted internally for further check. We will keep you posted on any update.
Thanks for sharing your feedback on our STM32MCUs Forum.
Khouloud.
2018-04-30 04:06 AM
Hi Daniel,
Thanks for rising this issue, it will be fixed next release