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

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

[avr-gcc-list] Linker Problems


From: André van Ooyen
Subject: [avr-gcc-list] Linker Problems
Date: Tue Feb 6 12:17:04 2001

Hello!
 
I tried Gunnar's new compile of avr-gcc 2.97 and tested some compiles with Volker's gcctest files. No problems with 8515 but
for example with at90s2313 I get after make:
 
avr-gcc -c -g -O3 -Wall -Wstrict-prototypes -Wa,-ahlms=gcctest1.lst
           -mmcu=at90s2313 -I. gcctest1.c gcctest1.o
avr-gcc gcctest.o -Wl, -Map=gcctest1.map, --cref -mmcu=at90s2313
           -o gcctest1.elf
E:\avrgcc\bin\..\lib\gcc-lib\avr\2.97\..\..\..\..\avr\bin\ld.exe:
        cannot open linker script file ldscripts/avr23xx.x: No such file or
        directory
 
What's the problem ?
 
Thanx,
André
 
 
P.S.: Source is:
#include <io.h>
 
typedef unsigned char  u08;
 
int main( void )
{
   u08 led, i, j, k;
 
   outp(0xff,DDRB);            /* use all pins on PortB for output */
 
   led = 1;                    /* init variable representing the LED state */
 
   for (;;) {
       outp(~led, PORTB);      /* invert the output since a zero means: LED on */
       led <<= 1;              /* move to next LED */
       if (!led)               /* overflow: start with Port B0 again */
           led = 1;
       for (i=0; i<255; i++)   /* outer delay loop */
           for(j=0; j<255;j++) /* inner delay loop */
               k++;            /* just do something - could also be a NOP */
   }
}

reply via email to

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