MFC51JM128 application linked to place the code above 0x3200. When this is programmed by CWarrior (no bootloader) after asm(stop #2000); it stops.
When the same application is loadded by my bootloader (the same s19 file) everything works no problem but after stop #2000 the processor firstly DOES NOT STOP. It does not wakeup immediatelly, IT RESETS.
What can be the cause for RESET after the execution of the instruction stop #2000. Intterupts can only wake up the processor not reset.
In both cases all interrupts are initialized, enabled or disabled the same way.