AnsweredAssumed Answered

Linker file and section declaration on KDS 3.0

Question asked by claudio brunelli on Nov 23, 2015
Latest reply on Nov 24, 2015 by claudio brunelli

Good mornig.

I need to modify the linker file in the KDS ide.

Everything it's ok, but when I have to define a variables in a specific source file I have to declare the section for

every variables.


__attribute__ ((section (".UartsData")))scidata SCI0_DATA;   // SCI0 data
__attribute__ ((section (".UartsData")))scidata SCI1_DATA;   // SCI1 data


If I don't use  __attribute__ ((section (".UartsData"))) in front of every variables, the same variable it's not in the segment I want.

Usually the segment must be declared once only at the head of the file.

Ther's a way to do this in KDS ?