Re: [avr-gcc-list] FIXED - with Strings and Serial I/O

2005-07-28 Thread Andy Warner
directly from program memory. These would be the ones ending in _P. There is also a whole section on Program Space String Utilities. Available here: http://www.nongnu.org/avr-libc/user-manual/group__avr__pgmspace.html -- [EMAIL PROTECTED] Andy Warner Voice: (612) 801

Re: [avr-gcc-list] Don't use gcc 3.4.4, use 4.0.1

2005-07-28 Thread Andy Warner
for me to spend some time getting to know it ? I'm running 3.4.3 right now, and am very happy with it - but smaller/faster code is always welcome. I'm cool building it all from source. -- [EMAIL PROTECTED] Andy Warner Voice: (612) 801-8549 Fax: (208) 575-5634

Re: [avr-gcc-list] avr-gcc and interrupts

2005-08-06 Thread Andy Warner
that handlers declared with INTERRUPT have global interrupts enabled when they run, whereas SIGNAL disables all interrupts before calling your code. -- [EMAIL PROTECTED] Andy Warner Voice: (612) 801-8549 Fax: (208) 575-5634 ___ AVR-GCC-list

Re: [avr-gcc-list] Problems with ATMEGA8 USART

2005-08-16 Thread Andy Warner
or the tail ? - so if you inherit code, it is always worth double checking which rule the author is following. None of which negates any of David's description, it just swaps the names of two variables. -- [EMAIL PROTECTED] Andy Warner Voice: (612) 801-8549 Fax: (208) 575-5634

Re: [avr-gcc-list] malloc-less i/o: small comparison

2005-09-05 Thread Andy Warner
it, and I'm sure there are others like me. -- [EMAIL PROTECTED] Andy Warner Voice: (612) 801-8549 Fax: (208) 575-5634 ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: [avr-gcc-list] Accessing structures defined in ROM ?

2005-09-26 Thread Andy Warner
Vincent Trouilliez wrote: [...] i = pgm_read_byte( p-nb ); //should return 3, but doesn't... Try: i = pgm_read_byte((p-nb)); After all, pgm_read_byte() takes the address of a byte to read, so you need to pass it the _address_ of the object you want. -- [EMAIL PROTECTED] Andy

Re: [avr-gcc-list] calling function pointers via pointers ?

2005-09-29 Thread Andy Warner
googleable) compiler error isn't _really_ the function of this list. -- [EMAIL PROTECTED] Andy Warner Voice: (612) 801-8549 Fax: (208) 575-5634 ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr

Re: [avr-gcc-list] CVS or SVN ?!

2005-09-30 Thread Andy Warner
-trivial products and managed not to gnaw my own arm off. -- [EMAIL PROTECTED] Andy Warner Voice: (612) 801-8549 Fax: (208) 575-5634 ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: [avr-gcc-list] Reading block from EEPROM ?

2005-10-10 Thread Andy Warner
however. This may not be an avrdude problem, per se - but double check the value of bit 3 of the high fuse byte. This controls whether eeprom contents are preserved/cleared during a chip erase. Default value says erase the eeprom. See page 255 of the Mega32 manual. -- [EMAIL PROTECTED] Andy

Re: [avr-gcc-list] Patching EEPROM image for production

2006-10-05 Thread Andy Warner
On 10/5/06, dimax un [EMAIL PROTECTED] wrote: Hi Folks, I'm trying to find clean solution for the following system problem. I have configuration structure in EEPROM: struct VPD_t { char sn[10]; char id[20]; }VPD EEPMEM; [...] Is the location in eeprom fixed between releases of the code

More volatile musings [was: Re: [avr-gcc-list] memcpy() : problem when passing destination pointer]

2009-02-12 Thread Andy Warner
Here is a paper on the volatile performance/conformance of various compilers (mostly gcc-based.) Including avr-gcc: http://www.cs.utah.edu/~regehr/papers/emsoft08-preprint.pdf While most of the problems referred to in this thread (and all the problems in Vincent's original posting) were

Re: [avr-gcc-list] Tables

2009-03-04 Thread Andy Warner
On Wed, Mar 4, 2009 at 12:05 PM, David VanHorn d...@mobilefusioninc.com wrote: How would I construct a lookup table of logarithms in program memory? I'll need the logarithm of N entries between 0 and 1, ex: If N = 10, then I need log(0), log(0.1), log(0.2) etc. I don't know what precision

Re: [avr-gcc-list] [Fwd: Re: Strings in ROM]

2009-03-16 Thread Andy Warner
On Mon, Mar 16, 2009 at 11:00 AM, Robert von Knobloch b...@engelking.de wrote: [...] What really had me confused is something that I consider may be be a bug. If I define a string (OK - array of char, but colloquially string) in a defined section: e.g. SECTION1 char mystring[] = This is a

[avr-gcc-list] Confusing volatile behaviour with 4.6.2

2011-11-26 Thread Andy Warner
I am seeing some volatile handling behaviour that confuses me, and is causing problems with some code. Background: freshly built toolchain (gcc: 4.6.2, binutils 2.21.1, avr-libc: 1.7.2, linux host.) Target: Mega128, project is a DMX512 dongle. DMX512 uses 250Kbaud serial comms, and uses a break

Re: [avr-gcc-list] Confusing volatile behaviour with 4.6.2

2011-11-28 Thread Andy Warner
On Mon, Nov 28, 2011 at 6:38 AM, Paulo Marques pmarq...@grupopie.com wrote: [...] Does the problem still occur if you assign the variables later and not at declaration time, i.e., something like: unsigned char status, data; volatile static int slot = SEARCHING; status

Re: [avr-gcc-list] Confusing volatile behaviour with 4.6.2

2011-11-29 Thread Andy Warner
On Tue, Nov 29, 2011 at 7:23 AM, Weddington, Eric eric.wedding...@atmel.com wrote: Hi Wim, Do you have a GCC bug report filled out for this issue? If the consensus is that this is a genuine bug (there's an awful lot of false bug reports involving volatiles), I'm happy to do my part and file

Re: [avr-gcc-list] Confusing volatile behaviour with 4.6.2

2011-11-30 Thread Andy Warner
On Tue, Nov 29, 2011 at 7:23 AM, Weddington, Eric eric.wedding...@atmel.com wrote: Hi Wim, Do you have a GCC bug report filled out for this issue? If not, could you fill out a bug report? http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51374 -- Andy