Hello,
I'm using the 28335. I defined a .cinit section in the linker file. I observed that the address changes sometimes after a compile. Is it possible to set this section to a fix address?
Many thanks,
Claudia
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.
Hi,
I would like you to go through this thread:
http://e2e.ti.com/support/development_tools/compiler/f/343/t/179805.aspx
Regards,
Gautam
Hello Claudia,
Claudia said:I'm using the 28335. I defined a .cinit section in the linker file. I observed that the address changes sometimes after a compile. Is it possible to set this section to a fix address?
Why do you need the .cinit section to start at a fixed address? In the linker command file, you specify the memory block that you want to link .cinit to. The linker can put the section anywhere in the block. Does it matter where in the block it goes for you?
There are some ways to force the linker to stick the .cinit section at a certain address. One simple way is to define a memory block in the .cmd file that only the .cinit section is linked to. The linker will put the .cinit section at the beginning of that block.
But again, I don't see why it should matter to you where in a memory block the linker sticks the .cinit section.
Regards,
David