I am working on the bootloader(baremetal) and an application based on safeRTOS. I am placing bootloader Vector table @ address 0x00000000 and application vector table @ 0x00020000. After jumping on the application I am able to find my vector table and perform the basic system initialization correctly.
As soon as I start the scheduler(more specific when i start the portSTART_FIRST_TASK) it got stuck. This problem is with OS based application not with baremetal application.
Also could you please share your linker file of Bootloader and application.
Below are the linker file of both for reference
#Bootloader Linker
VECTORS (X) : origin=0x00000000 length=0x00000020 vfill = 0xffffffff
FLASH0 (RX) : origin=0x00000020 length=0x001FFFE0 vfill = 0xffffffff
FLASH1 (RX) : origin=0x00200000 length=0x00200000 vfill = 0xffffffff
SRAM (RWX) : origin=0x08002000 length=0x0002D000
STACK (RW) : origin=0x08000000 length=0x00002000
#Application
VECTORS (X) : origin=0x00020000 length=0x00000080 vfill = 0xffffffff
KERN_FUNC (RX) : origin=0x00020080 length=0x0000ff80 vfill = 0xffffffff
FLASH0 (RX) : origin=0x00030000 length=0x001F0000 vfill = 0xffffffff
FLASH1 (RX) : origin=0x00220000 length=0x00200000 vfill = 0xffffffff
STACKS (RW) : origin=0x08000000 length=0x00001800
KERN_DATA (RW) : origin=0x08001800 length=0x00000800
RAM (RW) : origin=0x08002000 length=0x0007E000