[avr-gcc-list] (no subject)

2012-07-10 Thread Ron McCurdy
[code] #include int main(void) { init(); #if defined(USBCON) USBDevice.attach(); #endif setup(); for (;;) { loop(); if (serialEventRun) serialEventRun(); } return 0; } [ERROR] Undefined refere

[avr-gcc-list] (no subject)

2011-10-26 Thread v a
http://blog.sicilianiwired.org/wp-content/themes/fresh-editorial/mindex.php___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: [avr-gcc-list] (no subject)

2008-06-28 Thread Arkadiusz Krysiak
Thanks. It explain compiller behavior and different mask then i set. Dnia 29-06-2008 o godz. 0:12 Ruud Vlaming napisał(a): > Hi > > If i try (changed your code a bit to make it compile) > #define mbitPatternPowerMode (7<<2) > #define mADCNoiseReduction 0x20 > #define mbitSleepMask 0x04 >

Re: [avr-gcc-list] (no subject)

2008-06-28 Thread Ruud Vlaming
Hi If i try (changed your code a bit to make it compile) #define mbitPatternPowerMode (7<<2) #define mADCNoiseReduction 0x20 #define mbitSleepMask 0x04 void Test_MCUCR(void) { MCUCR=(MCUCR&(~mbitPatternPowerMode))|(mADCNoiseReduction|mbitSleepMask); } I get the same result. If you ho

[avr-gcc-list] (no subject)

2008-06-28 Thread Arkadiusz Krysiak
can anyone explain that behavior? i have: #define mbitPatternPowerMode=(7<<2); MCUCR=(MCUCR&(~mbitPatternPowerMode))|(mADCNoiseReduction|mbitSleepMask); and i get before compilation: +0088: B785IN R24,0x35 In from I/O location +0089: 7C83ANDIR24,0xC3

Re: [avr-gcc-list] (no subject)

2008-03-23 Thread Andy H
sys/types.h - or the absence, does cause failure in gcc testsuite (missing include) when I run tests /execute/builtins. 100 or so failures - basically any test that ends in -chk. So I create blank copy :-) I have not figured out how gcc creates these includes and what method we might use to

[avr-gcc-list] (no subject)

2008-03-22 Thread FRANCISCO ESPINOLA
Thank you J"org I only was worry about the libssp and the LD_LIBRARY_PATH because I am new making a cross compiler. But I test the avr-gcc and works fine with the led example. Francisco Javier Espinola Pozos FEM SIMULATION http://www.geocities.com/paco_espinola Telefono cel 04472218177

RE: [avr-gcc-list] (no subject)

2008-03-18 Thread Weddington, Eric
> -Original Message- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > org] On Behalf Of FRANCISCO ESPINOLA > Sent: Monday, March 17, 2008 8:50 PM > To: avr-gcc-list@nongnu.org > Subject: [avr-gcc-list] (no subject) > > Iam trying to built a gcc

[avr-gcc-list] (no subject)

2008-03-17 Thread FRANCISCO ESPINOLA
Iam trying to built a gcc 4.3.0 target avr but I am getting this message: 4.3.0/D-TARGET-AVR/./gcc/ -B/usr/local/avr/avr/bin/ -B/usr/local/avr/avr/lib/ -isystem /usr/local/avr/avr/include -isystem /usr/local/avr/avr/sys-include -o conftest -O2 -g -g -O2 conftest.c >&5 /home/paco/D-ELECTRON

Re: [avr-gcc-list] (no subject)

2008-01-28 Thread Andrew Hutchinson
There is a bug! Backend (avr part) creates special "pm()" annotation by looking at RTL. This is done in avr.c by this function: static bool avr_assemble_integer (rtx x, unsigned int size, int aligned_p) { debug_rtx(x); /*ADDED TO DEBUG*/ fprintf(stderr,"size=%d align=%d\n\n",size,aligned_p); /

RE: [avr-gcc-list] (no subject)

2008-01-28 Thread Wouter van Gulik
> Try casting the expression (foo +1) to a function pointer. This may > prove the point and correct the code in table - and elsewhere. > > Arithmetic with function pointers is probably not well standardized - if > at all. > I agree. Although giving different results for the same statement is v

Re: [avr-gcc-list] (no subject)

2008-01-28 Thread Andrew Hutchinson
Try casting the expression (foo +1) to a function pointer. This may prove the point and correct the code in table - and elsewhere. Arithmetic with function pointers is probably not well standardized - if at all. Andy Wouter van Gulik wrote: http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/Point

RE: [avr-gcc-list] (no subject)

2008-01-28 Thread Wouter van Gulik
> http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/Pointer-Arith.html#Pointer- > Arith > > The elements to which function (and void) pointer refer are assumed to > be size 1 byte. > > So if you really want to mess with these pointers, you must treat as > byte address. > Exactly what I thought. If I

Re: [avr-gcc-list] (no subject)

2008-01-27 Thread Andrew Hutchinson
The problem report in part is explained by: http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/Pointer-Arith.html#Pointer-Arith The elements to which function (and void) pointer refer are assumed to be size 1 byte. So if you really want to mess with these pointers, you must treat as byte address.

Re: [avr-gcc-list] (no subject)

2008-01-27 Thread Andrew Hutchinson
I think you highlight the problem for gcc. We are have to treat program memory as byte addressable to support LPM. Direct, function calls only want word address to form the correct opcode. But we use byte address labels and assembler removes the redundant bit to form the correct opcode. Ind

[avr-gcc-list] (no subject)

2008-01-27 Thread Wouter van Gulik
Compiling the following program ends up in "main.c:(.text+0x2): warning: internal error: out of range error" = main.c //Dummy func void foo(void) {} //Table with address manipulation void (* const pFuncTable[]) (void) = { foo + 0, foo + 1, //need odd off

Re: [avr-gcc-list] (no subject)

2007-09-26 Thread Karl Sjödahl - dunceor
On 9/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > i need tutorial about avr-gcc. > could you help me, please... > Use google and find some tutorials. Search for avr-gcc should yield tons of result. Here is one on the first page: http://electrons.psychogenic.com/modules/arms/art/3/AVRGCCP

[avr-gcc-list] (no subject)

2007-09-26 Thread yakuza
i need tutorial about avr-gcc. could you help me, please... ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

[avr-gcc-list] (no subject)

2007-03-28 Thread masod ARAGHI
hello plese send me an tinyusb project files for avr programmer with usb thank you [EMAIL PROTECTED] - Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games.___ AVR-GCC-list mailing li

[avr-gcc-list] (no subject)

2007-03-16 Thread 彭 少杰
开心工作,愉快生活! 使用 MSN Messenger 与联机的朋友进行交流 ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

[avr-gcc-list] (no subject)

2007-03-16 Thread masod ARAGHI
[EMAIL PROTECTED] - Don't pick lemons. See all the new 2007 cars at Yahoo! Autos.___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

[avr-gcc-list] (no subject)

2007-02-19 Thread Alberto Cesena
-- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: AW: [avr-gcc-list] (no subject)

2006-07-17 Thread Joerg Wunsch
"Haase Bjoern (PT-BEU/EMT)" <[EMAIL PROTECTED]> wrote: > Your question seems to be worth an entry in the FAQ: Done. Thanks for the idea, Björn! -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/NIC: JW11-RIPE Never trust an oper

RE: [avr-gcc-list] (no subject)

2006-07-17 Thread Schwichtenberg, Knut
Advait,   lets try to answer your question: void try1(void){    char a[20];<- Request for 20 bytes on the stack unsigned char i;        for(i=0;i<20;i++)        a[i] = com1_msgbuf[i];}the assembly for this function is this: (from the .lss file)     void try1(

AW: [avr-gcc-list] (no subject)

2006-07-17 Thread Haase Bjoern (PT-BEU/EMT)
-gcc-list] (no subject) Hello,I wrote a function which copies the contents of a global array into a local array to see how avr-gcc allocates local arrays on the stack.void try1(void){    char a[20];    unsigned char i;        for(i=0;i<20;i++)        a[i] = com1_msgbuf[i];}the assembly

[avr-gcc-list] (no subject)

2006-07-17 Thread Advait Jain
Hello, I wrote a function which copies the contents of a global array into a local array to see how avr-gcc allocates local arrays on the stack. void try1(void) {     char a[20];     unsigned char i;          for(i=0;i<20;i++)         a[i] = com1_msgbuf[i]; } the assembly for this function is t

Re: [avr-gcc-list] (no subject)

2006-03-16 Thread Joerg Wunsch
"Yannick PODGORSKI" <[EMAIL PROTECTED]> wrote: > Sorry, I find the bug report. It is the ID 26504 : > "compute_frame_pointer_to_cfa_displacement". Try configuring without --enable-dwarf2. DWARF-2 support in AVR-GCC is basically unmaintained, and apparently broke with GCC 4.1.0. -- cheers, J"or

Re: [avr-gcc-list] (no subject)

2006-03-16 Thread Eric Weddington
Yannick PODGORSKI wrote: Hi all, I try to install the GNU tool chain as in http://www.nongnu.org/avr-libc/user-manual/install_tools.html 2 weeks ago, I made this with : - binutils 2.16 - gcc 3.4.5 - avr libc 1.4.3 I can make all correct. There is no problem. Today, I try to make the same

RE: [avr-gcc-list] (no subject)

2006-03-16 Thread Yannick PODGORSKI
r-gcc-list@nongnu.orgObjet : [avr-gcc-list] (no subject) Hi all, I try to install the GNU tool chain as in http://www.nongnu.org/avr-libc/user-manual/install_tools.html   2 weeks ago, I made this with :  - binutils 2.16  - gcc 3.4.5  - avr libc 1.4.3 I can make all correct. There is no problem.   Today

[avr-gcc-list] (no subject)

2006-03-16 Thread Yannick PODGORSKI
Hi all, I try to install the GNU tool chain as in http://www.nongnu.org/avr-libc/user-manual/install_tools.html   2 weeks ago, I made this with :  - binutils 2.16  - gcc 3.4.5  - avr libc 1.4.3 I can make all correct. There is no problem.   Today, I try to make the same with (new gcc) :

[avr-gcc-list] (no subject)

2006-03-13 Thread Gary Taylor
Hi all, Does anyone have a way (in firmware) to determine what crystal is connected to a ATmega128 ? I have 2 x different versions of product in the field with 2 x different crystal values, and need to main the same code in both versions. Thanks   Best Regards   Gary Taylor Psitek Product D

Re: [avr-gcc-list] (no subject)

2006-01-31 Thread David Brown
: avr-gcc-list@nongnu.org Sent: Tuesday, January 31, 2006 3:12 AM Subject: Re: [avr-gcc-list] (no subject) Header files aren't meant for declaring variables; it's actually against the ANSI standard. What you need to do is put your global variables in a C file; perhaps globals.c...then cre

RE: [avr-gcc-list] (no subject)

2006-01-30 Thread Dave Hansen
From: "MuRaT KaRaDeNiZ" <[EMAIL PROTECTED]> So U08 RX485_oldbyte1; is uninitialized data, but compiler also initialize it to zero, why is it different from inline initialization during declaration, I expect the compiler just replace the zero with the initial value i provide? Because reality i

RE: [avr-gcc-list] (no subject)

2006-01-30 Thread MuRaT KaRaDeNiZ
this? Best Regards Murat Karadeniz http://www.onlinefavbar.com/mukas -Original Message- From: Dave Hylands [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 9:30 PM To: MuRaT KaRaDeNiZ Cc: AVR-GCC-list Subject: Re: [avr-gcc-list] (no subject) Hi, Sending to list... > I liv

Re: [avr-gcc-list] (no subject)

2006-01-30 Thread Bob Paddock
You want something more like this: #ifndef _GLOBAL_H_ #define _GLOBAL_H_ (1) #ifdef DEFINE_SPACE_GLOBAL_H #define EXTERN_GLOBAL #else #define EXTERN_GLOBAL extern #endif #if defined(__cplusplus) && __cplusplus extern "C" { #endif EXTERN_GLOBAL u08 RX485_oldbyte3, RX485_oldbyte2, RX485_oldby

RE: [avr-gcc-list] (no subject)

2006-01-30 Thread MuRaT KaRaDeNiZ
-Original Message- From: Bob Paddock [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 11:18 PM To: MuRaT KaRaDeNiZ Cc: 'AVR-GCC-list' Subject: Re: [avr-gcc-list] (no subject) You want something more like this: #ifndef _GLOBAL_H_ #define _GLOBAL_H_ (1) #ifdef DEFINE_SPAC

[avr-gcc-list] (no subject)

2006-01-30 Thread MuRaT KaRaDeNiZ
Title: Message Hi all,     I live a problem with avr gcc: When i use a global variable in the header file and simultaneously initialize it to nonzero value in the declaration, then the use of this header file in multiple project source files as an include causes "multiple definition error"

Re: [avr-gcc-list] (no subject)

2006-01-30 Thread Dave Hylands
Hi, Sending to list... > I live a problem with avr gcc: When i use a global variable in the header > file and simultaneously initialize it to nonzero value in the declaration, > then the use of this header file in multiple project source files as an > include causes "multiple definition error" on

Re: [avr-gcc-list] (no subject)

2006-01-26 Thread Robert Nelson
Gary Taylor wrote: Hi , How does anyone download the latest WinAVR ? … I have tried all the mirror site, but I keep getting this message … have been trying for +- 5 hours now! >You are requesting file: /winavr/WinAVR-20060125-install.exe ?There was a problem downloading the file from super

[avr-gcc-list] (no subject)

2006-01-26 Thread Gary Taylor
Hi , How does anyone download the latest WinAVR ? … I have tried all the mirror site, but I keep getting this message … have been trying for +- 5 hours now!   >You are requesting file: /winavr/WinAVR-20060125-install.exe ?There was a problem downloading the file from superb.dl.sourceforg

[avr-gcc-list] (no subject)

2005-11-12 Thread Jacek Szendzielorz
  --Pozdrawiam!  Jacek ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: [avr-gcc-list] (no subject)

2005-09-14 Thread E. Weddington
William Grigg wrote: All, Does the toolchain support the AT91RM9200? TIA Bill Yes and no. This mailing list is dedicated to the open source toolchain GNU Binutils, GCC, avr-libc, etc. *for the AVR target only*. Any AT91* processor is an ARM based processor. However, GNU Binutils and GC

[avr-gcc-list] (no subject)

2005-09-14 Thread William Grigg
All, Does the toolchain support the AT91RM9200? TIA Bill ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

[avr-gcc-list] (no subject)

2005-09-08 Thread Victor Romero
-- Gracias y Salu2 !!!=  Víctor Hugo Romero[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]  Ing. en Computación / Computer Engineer / Ingénieur en Informatique ___