[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] GCC Functions
From: |
Victor Sluiter |
Subject: |
Re: [avr-gcc-list] GCC Functions |
Date: |
Wed, 28 Nov 2001 16:19:03 +0100 (MET) |
Hello Patrick,
I tried to compile and test your program on my ATMega103, and everything
worked fine..... I also compiled for 2313, and tested the program in AVRStudio,
and everything went OK! What happens if you test under AVRStudio? I am using
the latest AVR-GCC from www.avrfreaks.net.......
Succes!
P.S.: This is my compiler output:
C:\ux\avrgcc\vic\tst>make
avr-gcc -c -g -O3 -Wall -Wstrict-prototypes -Wa,-ahlms=tst.lst
-mmcu=at90s2313 -
I. tst.c -o tst.o
avr-gcc tst.o -Wl,-Map=tst.map,--cref -mmcu=at90s2313 -o tst.elf
avr-objcopy -O ihex -R .eeprom tst.elf tst.rom
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load"
--change-section
-lma .eeprom=0 -O ihex tst.elf tst.eep
> Thanks everyone for the help but things are still not working. It has to
> do with the function or the global variable. If you toggle between the
> lines you will see this. Thank you very much for your help.
>
> led1();
> //ledlight = 0
>
>
> /*
> *************************************************************************
> avr-gcc -O0 -Wall -mmcu=at90s2313 -c demo2c.c -o demo1.o
> avr-gcc -o demo1.elf demo1.o
> avr-objcopy -O ihex demo1.elf demo1.hex
> **************************************************************************
> */
>
> #include <io2313.h>
> #include <interrupt.h>
> typedef unsigned char BYTE;
>
> void led1(void);
> BYTE ledlight;
>
> void led1(void){
> ledlight = 0;// = 0x00;
> }
>
> int main(void) {
> outp(255, DDRB); // port B all outputs
> outp(255, PORTB); // turn all leds off
>
> led1();
> //ledlight = 0;
>
> for(;;){
> outp(ledlight, PORTB); // turn led on
> }
> }
>
> Patrick Lanphier
> The Artemis Group
> http://www.artemisgroup.com
> phone: 814-235-0444
> fax: 800-582-9710
>
>
>
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list
>
--
-------------------------------------------------------
Een gewaarschuwd schizofreen telt voor vier.
- Fons Jansen
-------------------------------------------------------
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net