Tool/software:
HI :
I found the way of bootloader exception handling on the following webpage. It is as follows:
Application start address is: 0x00010020
Here is HL_sys_intvecs.asm from bootloader
; interrupt vectors
b _c_int00 ;0x00
b #0x10018 ;
b #0x10018 ;
b #0x10018 ;
b #0x10018 ;
b #0x10018 ;0x14
ldr pc,[pc, #-0x1b0] ;0x18
ldr pc,[pc, #-0x1b0] ;0x1C
; interrupt vectors
b _c_int00
b #0x2000F8
b #0x2000F8
b #0x2000F8
b #0x2000F8
b #0x2000F8
b #0x2000F8
b #0x2000F8
Why is the interrupt vector in the bootloader set to jump to a location that is 8 bytes before the application start address? Shouldn't it jump to the address obtained by adding the application start address and the interrupt vector multiplied by 4?
For example, Why not like the following?
b _c_int00
b #0x200104
b #0x200108
b #0x20010C
b #0x200110
b #0x200114
b #0x200118
b #0x20011C
Thanks
