I use two function (application note) as below :
1) PFlash_EraseBLock()
2) PFlash_EraseSector()
function 1 is ok, but 2 is fail
when i run funciton 2, program will run out and failure.
how to fix function 2 issue