[avr-gcc-list] array of pointers to functions - ok in RAM, fails in flash

2007-02-25 Thread David McNab
Hi, I'm creating a table of pointers to functions, where each function is like: void func(void) { ... } When I place the table into RAM, I can access elements, and dereference those elements to execute the corresponding functions. This works fine. For example: void (*func_tab[])() = {

[avr-gcc-list] More observations: array of pointers to functions

2007-02-25 Thread David McNab
Hi all Further to the issue of storing a table of function pointers into flash, and accessing this table accurately.. I've tried several variations, and looked at the .lst files in each case. Some variations were more elegant to the C purist, but caused severe code bloat, even at -O3. But I've

Re: [avr-gcc-list] howto: accurate fast usart with IntRC clock and OSCCAL

2007-02-25 Thread David McNab
is important. All good arguments. I've dropped this whole notion, and switched to external crystals. Seems one of my suppliers offers a 13.56MHz crystal. With UBRR set to 7, this allows for 115.2kb/s serial with 4.2% error - very much good enough. Cheers David Dig Kleppe David McNab wrote

[avr-gcc-list] C-asm docs/examples?

2007-02-26 Thread David McNab
Hi, Can anyone please point me to some resources for learning about interfacing C and assembler modules in gcc-avr? I've been looking at the asmdemo code from avr-libc, but it only goes part way with overall explanation. I'm especially needing to learn how to write assembler (.S) modules

[avr-gcc-list] avr-gcc 'documentation'

2007-02-27 Thread David McNab
Hi, I've already embarrassed myself on this list with my early naive questions, as I battle to migrate from PIC to AVR, and I guess I'm going to embarrass myself again. What I want to ask is - what's the current thinking within the avr-gcc community with respect to documentation, and the task of

Re: [avr-gcc-list] avr-gcc 'documentation'

2007-02-27 Thread David McNab
On Tue, 2007-02-27 at 18:59 -0500, Gary French wrote: in the binutils src dir exec: make do-install-html you'll get quite a bit of documentation in ${PREFIX}/share/doc Huh? There's no such target in the debian binutils-avr source package makefiles. Can you point me to a binutils-avr

Re: [avr-gcc-list] avr-gcc 'documentation'

2007-02-28 Thread David McNab
On Wed, 2007-02-28 at 15:21 +0100, Joerg Wunsch wrote: David McNab [EMAIL PROTECTED] wrote: - avr-as pseudo-ops - there seems to be no thorough list of these. For example, I had to look through list archives to learn how to declare a buffer in SRAM via the '.skip' pseudo-op That's

Re: [avr-gcc-list] avr-gcc 'documentation'

2007-02-28 Thread David McNab
On Wed, 2007-02-28 at 23:57 +0100, Joerg Wunsch wrote: I don't mind, as long as it's really live. I know the Wiki from www.mikrocontroller.net is, but that's German only. Which is great for German speakers, but overall it alienates more than 95% of people. So far, the best international

Re: [avr-gcc-list] gcc-avr/avr-libc wiki

2007-03-01 Thread David McNab
On Thu, 2007-03-01 at 16:27 -0500, Bob Paddock wrote: The Apostrophe Protection Society home page: http://www.apostrophe.fsnet.co.uk/ They're making great effort's to purge the language from apostrophe abuse's. ( /me ducks! ) ___ AVR-GCC-list

Re: [avr-gcc-list] gcc-avr/avr-libc wiki

2007-03-02 Thread David McNab
On Fri, 2007-03-02 at 07:23 -0500, Graham Davies wrote: Wikipedia is full of problems - systemic bias, errors, conflicting agendas etc, but it's a heck of a lot better than having no wikipedia at all. Wikipedia is not full of problems. Pages with bias are marked as such. Some pages are