[code]
#include
int main(void)
{
init();
#if defined(USBCON)
USBDevice.attach();
#endif
setup();
for (;;) {
loop();
if (serialEventRun) serialEventRun();
}
return 0;
}
[ERROR]
Undefined refere
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
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
>
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
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
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
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
> -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
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
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); /
> 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
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
> 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
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.
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
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
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
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
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
开心工作,愉快生活!
使用 MSN Messenger
与联机的朋友进行交流
___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
[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
--
"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
"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
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(
-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
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
"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
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
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
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) :
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
: 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
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
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
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
-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
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"
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
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
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
--Pozdrawiam!
Jacek
___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
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
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
-- Gracias y Salu2 !!!= Víctor
Hugo Romero[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Ing. en Computación / Computer Engineer / Ingénieur en Informatique
___
44 matches
Mail list logo