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

2009-02-21 Thread Parthasaradhi Nayani
--- On Sat, 2/21/09, Weddington, Eric wrote: > > It works for me. > > > > See attached demo. After the build look at the .map > file and > > the disassembly file (.dis). > > > > Just realize that because your variable is now in the > .test > Attachment error. Trying again for the list. Th

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

2009-02-21 Thread Parthasaradhi Nayani
--- On Sat, 2/21/09, Georg-Johann Lay wrote: > The trouble might return if .data/.bss will grow and then > overlap(s) No sir, I needed 256 bytes buffers two and the other variables may total to about 10 or so. > The problem is that you cannot > introduce holes in a section, i.e. start with

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

2009-02-20 Thread Weddington, Eric
> -Original Message- > From: Georg-Johann Lay [mailto:a...@gjlay.de] > Sent: Friday, February 20, 2009 4:05 PM > To: Weddington, Eric > Cc: partha_nay...@yahoo.com; avr-gcc-list > Subject: Re: [avr-gcc-list] introducing a new section in data memory > >

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

2009-02-20 Thread Georg-Johann Lay
: [avr-gcc-list] introducing a new section in data memory Hello all, I needed to create a buffer of 256 bytes starting at a page boundary (xx00) in the RAM memory (Mega8). I added this line in the makefile LDFLAGs = -wl,--section-start=.test=0x800200 and defined a variable in the .C file

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

2009-02-20 Thread Weddington, Eric
t; Subject: Re: [avr-gcc-list] introducing a new section in data memory > > On Friday 20 February 2009 19:41, Weddington, Eric wrote: > > > Attachment error. Trying again for the list. > > Just to inform you, the first post contained readable and correct > attachments, wher

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

2009-02-20 Thread Ruud Vlaming
On Friday 20 February 2009 19:41, Weddington, Eric wrote: > Attachment error. Trying again for the list. Just to inform you, the first post contained readable and correct attachments, whereas the second one needs manual uudecoding. I saw this before on your posts. Somehow it seems posts appear

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

2009-02-20 Thread Weddington, Eric
AM > > To: avr-gcc-list > > Subject: [avr-gcc-list] introducing a new section in data memory > > > > > > Hello all, > > I needed to create a buffer of 256 bytes starting at a page > > boundary (xx00) in the RAM memory (Mega8). > > > &g

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

2009-02-20 Thread Weddington, Eric
; Subject: [avr-gcc-list] introducing a new section in data memory > > > Hello all, > I needed to create a buffer of 256 bytes starting at a page > boundary (xx00) in the RAM memory (Mega8). > > I added this line in the makefile > > LDFLAGs = -wl,--section-start=.test=

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

2009-02-20 Thread Parthasaradhi Nayani
First off, is that a typo above? It's suppose to be an uppercase 'W' like so: LDFLAGs = -Wl,--section-start=.test=0x800200 Hi, Checked the 'W' and it was indeed capital letter only. The problem persists!! Any more suggestions please? Thank you. Nayani __

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

2009-02-19 Thread Parthasaradhi Nayani
--- On Fri, 2/20/09, Weddington, Eric wrote: First off, is that a typo above? It's suppose to be an uppercase 'W' like so: LDFLAGs = -Wl,--section-start=.test=0x800200 It was a typo. Will test and reply. Thank you for your time. Regards Nayani

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

2009-02-19 Thread Parthasaradhi Nayani
Hyderabad --- On Fri, 2/20/09, Parthasaradhi Nayani wrote: From: Parthasaradhi Nayani Subject: [avr-gcc-list] introducing a new section in data memory To: "avr-gcc-list@nongnu.org" Date: Friday, February 20, 2009, 10:46 AM Hello all, I sent a mail on the subject but it seems to hav

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

2009-02-19 Thread Parthasaradhi Nayani
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

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

2009-02-19 Thread Weddington, Eric
; Subject: [avr-gcc-list] introducing a new section in data memory > > > Hello all, > I needed to create a buffer of 256 bytes starting at a page > boundary (xx00) in the RAM memory (Mega8). > > I added this line in the makefile > > LDFLAGs = -wl,--section-start=.test

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

2009-02-19 Thread Parthasaradhi Nayani
Hello all, I needed to create a buffer of 256 bytes starting at a page boundary (xx00) in the RAM memory (Mega8). I added this line in the makefile LDFLAGs = -wl,--section-start=.test=0x800200 and defined a variable in the .C file (shown below) unsigned char mem3 __attribute__ ((section(".te