avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] introducing a new section in data memory


From: Parthasaradhi Nayani
Subject: Re: [avr-gcc-list] introducing a new section in data memory
Date: Thu, 19 Feb 2009 23:23:31 -0800 (PST)

Hello all,
My sincere apologies for posting the same thread again. I found my original thread and replies to that post in my spam folder!!! I am surprised why some mails should land up in spam folder while other from the same mail ID find themselves in the inbox???? Thank you.

Parthasaradhi
Hyderabad


--- On Fri, 2/20/09, Parthasaradhi Nayani <address@hidden> wrote:
From: Parthasaradhi Nayani <address@hidden>
Subject: [avr-gcc-list] introducing a new section in data memory
To: "address@hidden" <address@hidden>
Date: Friday, February 20, 2009, 10:46 AM

Hello all,

I sent a mail on the subject but it seems to have got lost   and therefore posting again

I need to have a buffer of about 256 bytes starting at a page boundary in the ram of Mega8. To get this I introduced a new section and assigned it an address in makefile. I defined variables, to test, using attribute section. However when I try to debug the code I see the variables are allotted memory locations other than specified in the section?

My makefile has the following statement

LDFLAGs = -wl,--section-start=.test=0x800100

My .C file has the following statements

unsigned char mem3 __attribute__ ((section(".test")));
int mem5 __attribute__ ((section(".test")));

I have also noticed, if I declare a global variable I get overlap error. Please help me solve this problem. Thank you.


Nayani

_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


reply via email to

[Prev in Thread] Current Thread [Next in Thread]