Hi,
I write earlier the post: http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/t/85400.aspx but noone answered.
I made some prograss but I still have some problem with creating a BIN file I need.
The problem is that sections are placed in output file not in order they appear in a script file. The .stack is placed after .text2 and next .const and .cinit sections. This makes bigger BIN file.
I want to locate all the UNINITIALIZED sections at the end of memory map, but when I use HIGH directive then sections are as I want but program doesn't work.
When I place HIGH directive at .data or .bss section EDMA of IVA doesn't work right. When I place HIGH directive at .stack section program doesn't work at all.
How to locate UNINITIALIZED sections at the end of the memory map?
I don't want to make two memory parts of IRAM.
My linker script:
-c
-heap 0x2000
-stack 0x2000
MEMORY
{
IRAM : origin = 0x402006A0, len = 0x0010000
}
SECTIONS
{
.text : 0x402006A0
.text2 : {main.obj(.text), cam.obj(.text), misc.obj(.text), ..., IVA.obj(.text)} > IRAM align 32
.cinit > IRAM
.data > IRAM
.const > IRAM
.bss > IRAM
.stack > IRAM
.switch > IRAM
.far > IRAM
}
Best regards