I have a problem to detect the FPVIOL flag in the FSTAT register when I try to erase or write a protected FLASH block on a HCS08GT60A chip.
My FLASH register configuration is the following:
FOPT = 0x42 (No Backdoor key, No vector redirection, Unsecured mode)
FPROT = 0xA0 (FLASH blocks from 0xE000 to 0xFFFF are protected)
In my test, I try to erase or programm the 0xF000 address with the algorithm decribed in the Data sheet. The Erase or Write action is not executed (no changes in the FLASH) but the FPVIOL flag is not set ???
Has anybody already seen this ?
Thanks a lot