I have two questions:
Que 1:
If I have Bootloader that starts at address 0x0 and Application that is some offset from there (e.g. 0x40000), what is the best way for my application to handle exceptions like dabort? Right now I branch from 0x10 to my application's dabort handler. The downside is the bootloader can't handle dabort faults now. Is there a better way?
Que 2:
I want to do some preprocessing of an Application exception in the Boot before returning to Application. For example:
1. Application (starts at 0x40000) gets dabort and goes to 0x10 (bootloader starts at 0x0 - 0x40000)
2. Instruction at 0x10 branches to subroutine in bootloader space BootExcpHdl() at 0x1000
3 .At the end of BootExcpHdl() in bootloader, I want to branch to application address 0x400100 and continue executing from there.
Right now, at #2 I get another dabort as soon I try to execute from from bootloader address 0x1000.
How do I get around this?
Thanks.
