Hi all, I've been trying to compile avrx with gcc for the atmega169 so I can run it on a butterfly. After changing GCCMCU to atmega169 in the makefile, all the...
Hi Gordon, Yes, some registers have moved and in some cases they moved to an address that is outside the reach of some instructions (watchdog register comes to...
The C compiler changed the way they defined registers about two years ago - in part to accommodate this issue of the newer chips having I/O registers above...
Thanks, Larry. Singlestep I can live without, but serial i/o would be nice to have. I see where Stephane Gauthier has written a serialio module in C. Has...
Hi Gordon, it helps if you let us know which avrgcc version you're using :-) I just got two butterflies myself and while I'm not sure yet if I'll run avrx I...
Hi Sander, I'm using the very latest WinAVR (20040404) that was just released this week. I've compiled some example code so I know the gcc compiler can handle...
Hello I have a problem with the serialio.s file I am using avr-gcc version 3.2 and avrx-2.6e When i try to compile the serialio.s file i get the following ...
Thanks, Arthur. I downloaded the latest version of iom169.h (April 6, 2004) and this seemed to fix the register alias problem. But I'm still getting the ...
The problem is with SBI/CBI and IN/OUT instructions: they only work on the first 64 bytes of address space (e.g. 0x20->0x5F). You need to replace them with...
Hi, That code should be fairly general but make sure to review the bit settings in the INIT routine as I had to change 1 bit when porting stuff from mega8 to...
No problem; I had a case recently where I needed to do this and it works quite well. In addition to MCB's, I also had an array of TimerControlBlocks. Dave...
I would like to see an example of how to create an array of MessageControlBlocks. i.e. MessageControlBlock b1,b2; MessageControlBlock block[5]={}; block[0]=b1;...
I encountered local variable (in r28) corruption in interrupt handler AVRX_SIGINT(SIG_2WIRE_SERIAL). Here is what I think is happening, based on examining the...
This shouldn't be a problem. IntProlog is only called when switching from one context to another. The Y register (frame pointer) is meaningless upon entry...
Shouldn't, unless your brain is warped by years of c89, and you do this: AVRX_SIGINT(SIG_2WIRE_SERIAL) { uint8_t TWSR_status = (TWSR & TW_STATUS_MASK); ...
Hi, ... You need to read about the C preprocessor. What you're looking at (and indeed should have quoted the full item) is a macro, and the double ## is the...
Hi. first that English is not my first language,thus excuse me. when i deal with semaphore types in AvrX had some problem. i worked with freertos & Learn that...
Avrx is pretty generic. The two areas that need CPU specific attention are 1. the interrupt vector table 2. the serial I/O defines (they seem to change from...
1. That is the way I did it. Semaphores have state info. The task/interrupt handler that is triggering the semaphore might have done it *before* the receiver...
... This is exactly why I wrote a simple message queue mechanism. The current AvrX "message" is like a letter box that can only hold one letter at a time;...
Thank you. I test Avrx on the Mega162 successfully. But, when i make BasicTest1, occured the warnings like: "Warning: ignoring function IntProlog() outside any...
That is just the elf2coff converter complaining that it can't put the symbol information into the debugger file. Coff, apparently, is somewhat limited in what...
Hi everyone, ... I have exactely the same problem! There was no reply to Steve's message in the list archieve - does that mean that there is no solution? or...