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: OS not started when jump from Bootloader to Application

Part Number: TMS570LC4357


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. 

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

Thanks,

Aman

  • Hi Aman,

    RTOS supports two type of tasks: privileged task and unprivileged tasks. A privileged task has access to the entire memory map, but an unprivileged task only has access to its stack. A task that is running in unprivileged mode cannot set itself into privileged mode.

    Does your task access a MPU protected region? Can you try the same operations in a privileged task?

    You have another post with the same question, so I am closing this one.