Flash erase not working on segment $EE00. The protection is off. Why is it not erasing?
Hi,
the flash module is not able to E/W the block of the memory the code is executed from. The solution is to use independent memory as RAM to be able to E/W any part of flash.
Look into flash.h of attached project to see how the RAM code is solved. The project is written for DG128 or DT256 but difference is only in some peripherals in the first case and memory size in the second case. Your description is very simple without code example so I hope I have found the issue.
Best regards,
Ladislav