Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top