Has anyone built the examples (specifically the Timers.c example) that are included with AvrX2.6f using AVRstudio? I am having trouble trying to, with missing...
Hi, Peter! ... I am workin on Linux and have a modified AvrX as well as AvrXC building for ATmega168 with varying results. Since you didn't give details (error...
Clemens Koller
clemens.koller@...
Nov 7, 2007 10:44 am
1673
Yes, they all build without any errors. I you tell us what the error messages are we can likely solve the problem for you. Rgds, Shane ... that...
Shane, I get the following: Build started 11.11.2007 at 08:58:51 avr-gcc.exe -mmcu=atmega8 -Wall -gdwarf-2 -O0 -MD -MP -MT Timers.o -MF dep/Timers.o.d -c...
The first error message gives you the clue. Have you set your PATH correctly? It is in the installation instructions. Seems the complier can't find any of...
I have a problem with AvrX support of the ATmega2561. The file avrx_generatesinglestepinterrupt.S fails because it accesses TCCR0 whereas the ATmega2561 has...
... Been there, done that... $ grep -r "TCCR" * AvrX as well as the AvrXC seem to give really nice RT functionality to the AVR. But they need some tweaking...
Clemens Koller
clemens.koller@...
Nov 15, 2007 12:09 pm
1678
Hi Peter, Snooping through WinAVR's io.h reveals this line: #elif defined (__AVR_ATmega2561__) You should be able to use __AVR_ATmega2561__ for your #ifdef. ...
Thanks, folks. Most helpful. A couple of questions, and a bug (I think).. 1. What is AvrXC? 2. Is there a comprehensive way to make the changes to support the...
... http://www.foleysystems.co.uk/avrx.html That's a AvrX version from Brian Logan (thanks!), with some assembler stuff re-written in C. I've addedd some...
Clemens Koller
clemens.koller@...
Nov 16, 2007 12:54 pm
1681
Can anyone tell me the following, please? I've looked everywhere that I can think of. 1. How does avr-gcc handle function calls for the ATmega2561? presumably...
... Did you try Google for 'avr-gcc ATmega2561'? If you did, you would run across a posting where it mentions that only the assembler supports the 2561 as of...
... instructions. Seems the complier can't find any of the include files. Fix that before you start on anything else. ... Thanks Shane. Of course I missed...
... also lazy, ... ATmega88. ... change from ... TCCR0B (or ... Neil, Your posting showed the register in question as TCCRo, when is is really TCCR0A or...
I noticed two _exp.S file under my avrx. They are not used by makefile. I suppose there is some expriment features in it. Who can give more info about that? ...
Hello, I am trying to figure out if the following two snippets of code are valid and equivalent: /* Snippet 1 */ ISR(any_vect) { AvrXSendMessage(&foo, &bar); }...
All, I am using AvrX on a project that is processing a high-frequency communication protocol using an input capture interrupt. The pulses on this network...
What is your cpu clock speed? 12us is pretty fast. The handler you list, below, will have a minimum 250 cycle latency - however you can enable interrupts...
Thanks for the response. CPU clock speed is 8MHz, which is maximum for the ATmega64 device we are using. The minimum pulse I have to measure is 20us. I have 4 ...
if function A() is a task with a 128 byte stack, and just a few variables, and it calls B() which has perhaps 20 bytes of variables, one of which is an AVRX...
You just described your task trouble in enough detail that you explained the problem and its cause... if the TCB is an automatic variable in func B(), it can...
Thanks for the thoughtful responses... On the TCB as an automatic - I think I'm OK because the function declaring the TCB as an automatic is coded to not...
One of the later changes to AvrX was to make the prolog a "no return" vs. "naked". The state save/restore is handled in IntProlog/Epilog. When "naked" was...
Hi all, I have some trouble using AVRX on an ATMega2561. I've been using AVRX for a few years on an ATMega32 und it works very well. Now I want to use this...
Have you taught AvrX about the two words return address pushed on the stack? ... From: avrx@yahoogroups.com [mailto:avrx@yahoogroups.com] On Behalf Of ...
... This was also my thought and this was the reason why I tried to use the 'C' version of AVRX where the right width of the return address should be choosen...
There should be four bytes of ret address, not two for machines > 128kb of flash. You need to adjust the task structure and add extra ldd and std instructions...
Considering the changes in winavr syntax for interrupt handlers, is this the correct interrupt declaration for the external interrupt #4 (mega128) ? ...