AnsweredAssumed Answered

Linking an array to a fixed address

Question asked by mattj on Nov 1, 2012
Latest reply on Nov 22, 2012 by mattj

Hello,

 

within Codewarrior / processor expert / CPU build options I have created a new MemoryArea at a fixed address called myromheader. Now I want the linker to put an array in this section. I've tried all ways I could find, via attribute, via declspec etc:

 

const unsigned char myheader[10] __attribute__((section(".myromheader"))) = {"1752"};

 

In the generated map file I can see that my section is created but the array is always linked to the normal code section. Any ideas what else to do?

Outcomes