Is there a way to attach the debugger to a target that already has code in Flash? Everytime I open a COF file, it erases and overwrites the flash, thus wiping anything already there.
For example, I'm trying to test the bootloader/firmware interaction. We use the bootloader for field firmware upgrades and we want to return to the bootloader if an upgrade is initiated. If I load the bootloader, then use the bootloader to load the application, I can't do any source level debug of the application. And vice-versa, if I load the application, I can't do source level debug of the bootloader.
I tried disabling the JTAGICE mkII options (i.e. "Don't reprogram device" under the Program Download options), but it always does.