I need to replace firmware in application, so I need to erase also first sector of flash. It seems that this sector is somehow blocked from erasing - when I do erasing in loop sector by sector, first sector remains unerased but other sectors are erased. FlashSectorErase returns always 0 so it should be successful.
VIMS cache mode is disabled. Sectors are not protected. Update functions are executed from RAM. I use Keil IDE and J-link.
Is there anything I should take care of to erase the first sector of flash?