I am using the motorola standard sgf flash drivers to erase/flash my MC9S12xDP512.
After running the NVMSectorErase(), I see that the page FD which I am trying to erase is partially erased. However the debugger when it loads, it erases the page completely but I can't.
I am running the code to erase, from RAM, so I feel I am not violating any of the restrictions of executing from the block to erase a page on the same one.
Even the NVMSectorErase() function returns no error, but not all locations are erased.
I downloaded these drivers under the MC9S12xDP512 product page of freescale website.