External addressing question AvrStudio 5

Status
Not open for further replies.

jdh_1984

Member level 2
Joined
Aug 11, 2010
Messages
52
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Norway
Activity points
1,854
Memory mapping in AvrStudio 5 (AVR GCC)

Hi
I am trying to address an external device from an atmega 128. I want to set the external device start address at 0x8000
Here is an example how this was done in an old version of codevisionAVR:
#pragma warn-
unsigned char Chip_base[0x8000]@0x8000; // Address of W5100
#pragma warn+

How could this be done in Avr studio 5 (AVR GCC)?

I have tried to use the following syntax (from **broken link removed**) :
unsigned char Chip_base[0x7FFF] __attribute__((io(0x8000)));

But when the memory mapping file is read I find: "0x00800145 Chip_base"

what am I doing wrong???
 
Last edited:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…