jdh_1984
Member level 2
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???
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: