STM32F429ZI Flash Problem. MCU sets FLASH->SR bits: PGPERR and PGSERR all the time even it is cleared just before.
MCU sets FLASH->SR bits: PGPERR and PGSERR all the time even immediately after it is cleared.
It causes a problem with erasing flash memory.
I am using RTOS(TIM1 as a base), Timers and Systick as well but I think those shouldn't be a problem.
Code is executed from flash but from different regions, so it isn't overlapping.
I was thinking if cache can make this problem, but after turning of cache before I have still the problem.
I was doing flashing other sectors on STM32F1 and there was no problems with it, but if I remember correctly there are no such flags.