Forum: Compiler & IDEs ATxMega GCC Linker Problem


von Zimmi (Gast)


Angehängte Dateien:

Lesenswert?

Hi,

i am writing a New Bootloader for ATxMega Family.
With it i often have a linker problem, w. tells an overlapping of Memory 
segments ( see picture Linker Error )

The code uses about 40% of the hole Boot-Range, and w. some small 
changes in code, i get it running ( wondering ? )

So, why is there such a big difference between

char ucBuff[6] = "300225"; // generating linker Error

to ( working one )

char ucBuff[6];
ucBuff[0]='3';
ucBuff[1]='0';
..
ucBuff[5]='5';

Do you know the difference ? Why do i get the linker problem ?

BR Zimmi

von Johann L. (gjlayde) Benutzerseite


Lesenswert?


Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.