Hi,
If I understand correctly, when you run the code from flash, not under the debugger, all is fine, but when you run it under the debugger, you receive the error above?
Are you trying to debug from flash or RAM?
You can easily get this error if attempt to debug from flash, but don't (manually) program the flash first.
You can also get the error if you attempt to debug from RAM, but don't set the debugger to (automatically) download the code, I believe.
Beyond this, you'll want to make sure the VBR you set in your debugger cfg file matches the location of your VBR indicated in your xMAP file, but unless you went and changed something, they should be set correctly by default.
-- Rich