This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: bootloader with rtos

Part Number: TMS570LC4357


Tool/software:

HI :

I found the way of bootloader exception handling on the following webpage. It is as follows:

Issue with bootloading and RTOS - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums

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

TMS570LC4357: Boot-loader with uC/OS-III Application - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums

; 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