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

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

[avr-gcc-list] 32 Kb Sram trouble


From: Kasper
Subject: [avr-gcc-list] 32 Kb Sram trouble
Date: Tue, 27 Jan 2004 17:01:43 +0100

Hey

I have made almost the same board as the eavr, on this site...

i am using a version of uIP...

i got it nicely to work, but after i putted 32 kb of ram on it stopped to work, 
after i sat the linker up to use the external ram :

LDFLAGS = -Wl,-Map=$(TARGET).map,--cref
LDFLAGS += 
-Wl,-Tdata=0x801100,--defsym=__heap_start=0x805100,--defsym=__heap_end=0x807fff
(it worked ½ but suddenly it dies)

Then i tried only to put the heap out in the ram :

LDFLAGS = -Wl,-Map=$(TARGET).map,--cref
LDFLAGS += -Wl,--defsym=__heap_start=0x805100,--defsym=__heap_end=0x807fff

Then it worked again

Anyone have a syggestion ???

off caurse i have to mention the Sram is initilised early :
#define INIT_1_SECTION __attribute__ ((naked)) __attribute__ ((section 
(".init1")))
void InitXramAccess (void) INIT_1_SECTION;
void InitXramAccess (void) {
MCUCR = 0x80; // Enable ATmega Bus-Pins
XMCRA = 0x00; // No Waitstate
XMCRB = 0;

At this url i tried to get help at avrfreak, but they send me here... but for 
more info try this url :
http://www.avrfreaks.com/phorum/read.php?f=2&i=13730&t=13730#13730


Hope someone is kind to help me to do something

I've tried a lot, but i am not hte super to Gcc compiler yet ):

Best Regards 

Kasper

reply via email to

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