2015-10-01 07:06 AM
Hi,
I try to use page 6: 0x00040000 (0x20000 128kB) and 0x00060000 (0x20000 128kB) for storing configuration data uploaded via usb interface. The problem is that after erasing single page (using HAL_FLASHEx_Erase ) tim5 stops generating interrupts. It's ticking but interrupts are not generated. CR1 is 0x01 and CR2 is 0x30. I try to clear IT pandng bits but without success ;( Other (external) interrupts works fine... I also know that erasing 128kB page will stall core for second or even more, but it's not problem, i just want to have running timers after erasing. and one more question regarding note AN3969 EEPROM emulation in STM32F40x/STM32F41x microcontrollers. There is a table no 2 ( Emulated pages possible status and corresponding actions) and according this table every time (during initialization) if one page is VALID and 2nd page is ERASED, second page is erased again... In my opinion it's nonsense to erase already FFFF filled page... but maybe there is some reason for doing it ? Best regards Krzysiek #timer #flash #erase