Re: [avr-gcc-list] Howto put constants on fixed address

2007-12-23 Thread Joerg Wunsch
Stu Bell [EMAIL PROTECTED] wrote: My feeling is that you are asking quite a bit too much from the linker to expect it to flow code around an obstacle in the middle of it's memory map. I agree. If at all, I'd simply use the last (upmost) ROM location for that magic number or magic string.

Re: [avr-gcc-list] Howto put constants on fixed address

2007-12-20 Thread TODD BATZLER
: [EMAIL PROTECTED] Komu: Martin Ĺ̋iĹžka [EMAIL PROTECTED] CC: avr-gcc List avr-gcc-list@nongnu.org Datum: 20.12.2007 01:12 Předmět: Re: [avr-gcc-list] Howto put constants on fixed address On Dec 19, 2007, at 5:03 PM, Martin Žižka wrote: Yes, that will place the .length segment between

Re: [avr-gcc-list] Howto put constants on fixed address

2007-12-20 Thread zizka
... __ Od: [EMAIL PROTECTED] Komu: Martin Ĺ˝iĹžka [EMAIL PROTECTED] CC: avr-gcc List avr-gcc-list@nongnu.org Datum: 20.12.2007 01:12 Předmět: Re: [avr-gcc-list] Howto put constants on fixed address On Dec 19, 2007, at 5:03 PM, Martin Žižka wrote: Yes, that will place the .length segment between

RE: [avr-gcc-list] Howto put constants on fixed address

2007-12-20 Thread Stu Bell
Yes, that will place the .length segment between .vectors and .progmem. But you are unable to place it to some exact address. That will place it to address that is offset_of(.vectors)+length_of(.vectors). That can be different for some cpus. So what? You are able to reference the location

RE: [avr-gcc-list] Howto put constants on fixed address

2007-12-20 Thread Martin Žižka
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of TODD BATZLER Sent: Thursday, December 20, 2007 4:32 PM To: avr-gcc-list@nongnu.org Subject: Re: [avr-gcc-list] Howto put constants on fixed address You've now found yourself exactly where I did. I wanted to bury a software part number at 0x100

RE: [avr-gcc-list] Howto put constants on fixed address

2007-12-19 Thread Weddington, Eric
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] org] On Behalf Of Zizka Sent: Wednesday, December 19, 2007 9:13 AM To: avr-gcc-list@nongnu.org Subject: [avr-gcc-list] Howto put constants on fixed address Hi, I need to put some constants on specific

RE: [avr-gcc-list] Howto put constants on fixed address

2007-12-19 Thread zizka
Well, perhaps I've written something wrong, because I think that you are talking about something else. Or I did not understand that, that is also possible :-). I need to put my constants on specific address into flash memory, not into sram. I want to have the resulting flash content like this:

Re: [avr-gcc-list] Howto put constants on fixed address

2007-12-19 Thread David Kelly
On Wed, Dec 19, 2007 at 06:07:19PM +0100, [EMAIL PROTECTED] wrote: Well, perhaps I've written something wrong, because I think that you are talking about something else. Or I did not understand that, that is also possible :-). I need to put my constants on specific address into flash memory,

RE: [avr-gcc-list] Howto put constants on fixed address

2007-12-19 Thread Stu Bell
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 10:07 AM To: avr-gcc-list@nongnu.org Subject: RE: [avr-gcc-list] Howto put constants on fixed address Well, perhaps I've written something wrong, because I think that you are talking about something

RE: [avr-gcc-list] Howto put constants on fixed address

2007-12-19 Thread Stu Bell
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stu Bell Sent: Wednesday, December 19, 2007 10:26 AM To: [EMAIL PROTECTED]; avr-gcc-list@nongnu.org Subject: RE: [avr-gcc-list] Howto put constants on fixed address I have code in my bootloader that runs a CRC on the loaded code for a sanity check

RE: [avr-gcc-list] Howto put constants on fixed address

2007-12-19 Thread Martin Žižka
somewhere inside the .text segment. -Original Message- From: David Kelly [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 6:45 PM To: [EMAIL PROTECTED] Cc: avr-gcc-list@nongnu.org Subject: Re: [avr-gcc-list] Howto put constants on fixed address On Wed, Dec 19, 2007 at 06:07

RE: [avr-gcc-list] Howto put constants on fixed address

2007-12-19 Thread Martin Žižka
:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 6:26 PM To: [EMAIL PROTECTED]; avr-gcc-list@nongnu.org Subject: RE: [avr-gcc-list] Howto put constants on fixed address I have code in my bootloader that runs a CRC on the loaded code for a sanity check. For that I need a length. Of course

Re: [avr-gcc-list] Howto put constants on fixed address

2007-12-19 Thread David Kelly
On Dec 19, 2007, at 5:03 PM, Martin Žižka wrote: Yes, that will place the .length segment between .vectors and .progmem. But you are unable to place it to some exact address. That will place it to address that is offset_of(.vectors)+length_of(.vectors). That can be different for some cpus.