Hello @Jimmy_1,
Can you please specify the debugger?
Or is it your own custom debugger that you are working on?
What do you mean by " the flash data is still the same"?
Becasue the flash sector must be erased (all 1s) before it can be re-programmed.
Do you follow the 4.1.2 Program and Erase Sequences in User Mode description in the FTS256K Block User Guide V03.00.
Do you see any error flags when the programming sequence is complete?
You can refer to the attached example.
Function Flash_Write_Word(ULONG addr,UWORD data) in flash.c,
Regards,
Daniel