Part Number: AM4372
Hi all,
I'm using compiler "TI v16.9.3.LTS".
Can I define two text sections as below and place them in internal RAM and DDR0 respectively?
Best regards,
Sasaki
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.
Before I answer your question, please note that this ...
.text {
test.obj
} > DDR0
... means that all of the input sections (such as .bss, data, and so on) in test.obj are added to that output section named .text. It is doubtful that this is what you want. It is likely you mean to write ...
.text {
test.obj(.text)
} > DDR0
... instead. This means that only the .text input section from test.obj is placed in this .text output section. The other input sections (.bss, .data, and so on) are thus combined with output sections that have the same name.
S.Sasaki said:Can I define two text sections as below and place them in internal RAM and DDR0 respectively?
Yes. But that could cause confusion later. Avoid that by giving each output section a unique name. In this case, something like ...
.special_name_here {
.test.obj(.text)
} > DDR0
For more usage tips on linker command files, please see the article Linker Command File Primer.
Thanks and regards,
-George
S.Sasaki said:if I describe as below and place .bss & .data etc in .text, will the device work properly?
That depends on details of how the hardware works in that configuration. I lack the expertise to answer.
Thanks and regards,
-George