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.

FreeRTOS Startup Initialization Problem

Other Parts Discussed in Thread: TMS570LS1227, HALCOGEN

Hi,

I am using freeRTOS on the HDK570 with the TMS570LS1227 processor.  I am running the freeRTOS demo for the Cortex processors and it was intended to run on the TMS57031xx USB Stick.  The code compiles fine, loads fine, but fails as soon at the OS is called.

The problem I am having is that the heap is not being initialized.  The first call into the RTOS tries to create a queue and that fails.  There is a static variable pxEnd that appears to never be set to NULL as it should be.  That causes the heap initialization to be bypassed which fails the create process.

I had a similar initialization problem with an MSP430 project and there was a function _system_pre_init which makes it possible to assured that all initialization took place before the watchdog fired.  Is there a similar function for the TMS570LSxxxx processors? OR Am I looking in the wrong place?

Thanks,

Ron