avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Extended SRAM access


From: teboho
Subject: [avr-gcc-list] Extended SRAM access
Date: Tue, 2 Jul 2002 13:09:55 +0100

Hi everyone,
I am using the new win32 avrgcc release. My embedded web server has 32k external SRAM. I am trying to access it. In the avr-gcc list archives dated september 2001 I found out that I have to modify the avrmega103.x file and the linker flag in the makefile. The changes that I made are: 
in avrmega103.x:
 Change line in avrmega103.x:
  data   (rw!x) : ORIGIN = 0x800060, LENGTH = 4K
to:
  data   (rw!x) : ORIGIN = 0x800060, LENGTH = 8K

My linker flags:
LDFLAGS = -Map $(TRG).map -Tavrmega103.x \
                        --defsym __init_mcucr__=0xc0 \
                        --defsym __init_wdtcr__=0x00 \
                        --defsym __stack=0x7fff

The error I am getting is:
avr-gcc main.o ffile.o config.o  -Wl,-Map=EIT_v1_3.map,--cref.-Tavrmega103.x --defsym__init_mcucr__=0xc0 --defsym__init_wdtcr__=0x00 --defsym__stack=0x7fff -mmcu=atmega103 -o EIT_v1_3.elf
c:avrgcc128\bin\..\lib\gcc-lib\avr\3.2\..\..\..\avr\bin\ld.exe: cannot open linker script file avrmega.x: No such file or directory
c:avrgcc128\bin\make.exe: ***[EIT_v1_3.elf] Error 1.
 
The file avrmega103.x is still in the linker script folder. I have no clue of what to do now.
 
Can anyone help.
 
thanks in advance.
Teboho Nyareli

reply via email to

[Prev in Thread] Current Thread [Next in Thread]