Question
I am using Nucleo-32 with STM32F042K6 and trying to use flash (32KB, 1K pages). I can erase, read right each page starting at page 18 (18,432) up through page 31 (31,744), except page 21 (21,504). Page 21 hard faults on erase.
-Using the HAL in STM32 Cube IDE.
-I can examine the FLASH pointer in the hard fault ISR and the registers appear to be just like when accessing any other page.
-I am unlocking the Flash and the option bytes.
-I have not modified the option bytes.
-It does not matter how many pages I have erased before, whether it is 5 or none, page 21 hard faults.
Thank You