STM32G474 HAL_FLASHEx_Erase returns error when TIM1 is enabled and TIM17 is used as systick
I found a strange behavior when using TIM1 / TIM17 together with HAL_FLASHEx_Erase.
I'm using CubeMX 6.9.2 to generate the project.
My application is using the HAL_FLASHEx_Erase function to erase some pages of the flash.
This was working fine until I enabled TIM1. When TIM1 is enabled. Basically it is enough to set the TIM1 clock source to internal using CubeMX. The flash erase function returns HAL_ERROR.
Disabling TIM17 as systick solves the problem and everything works normal. Also disabling TIM1 solves the problem.
Any ideas? I might have overseen some relationship between TIM1 and FLASH but I red the Refman and found nothing suspicious.
Regards,
Dirk.
