Tony,
Thanks for the reply. Your 'flash.sub' will take me some time to digest. It looks similar to the App note but more comprehensive.
I tried running mine in CodeWarrior simulator, but it never exits the subroutine running on the stack. I guess this is because the simulator cannot actually simulate the flash memory erase or write. There seams to be some time critical operations (flash clock has limited range) and this probably limits the use of Back Ground Debug operation as well. Any comment?
Bill