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.

TMS570LS1224: tiarmclang linker/startup code problem: data not initialised

Part Number: TMS570LS1224
Other Parts Discussed in Thread: LAUNCHXL2-TMS57012, HALCOGEN

Hi,

My data is not being initialised properly before main() using tiarmclang v1.3.0.

Here is an example:

testValue was placed in .data as shown by this extract of the map file:

.data 0 08002200 00000af4
...
08002abc 00000004 sys_main.o (.data.testValue)

And I placed .data into the RAM MEMORY section with my linker script like this:

MEMORY
{...
    RAM (RWI) : origin=0x08002000 length=0x0002E000
}

...

SECTION

{...

   .data : {} > RAM

}

I am using startup files generated by HalCoGen, modified slightly to compile with tiarmclang. Is this the source of my problem? If so, is there any example code for the LAUNCHXL2-TMS57012 using tiarmclang?

Thanks,

Adam