kapricanon wrote:no a reset does not help either...
It's not really clear from your post but do you call flashed code from bootloader?
If yes, you can go with real vector table. Place at known address (for example 0x100) code with jumps to real routines like:
0x100: goto func1
0x104: goto func2
0x108: goto func3
Then you can safely call address 0x104 from bootloader and end up in func2.
In MPLAB it can be done with #pragma code and some inline asm probably.