Fixed my problem, looks like register naming problem (maybe i have an older version of avrx). To fix added following to avrx_generatesinglestepinterrupt.S: ...
Hi Larry: IntProlog have such code: ldd R25, Y+_R25 ; need to restore this register (used for SREG) IntProlog use R25 to save SREG then push it. So the R25...
IntProlog does not "know" where it is coming from (C code, your own assembly code, somewhere inside a C function due to an interrupt, etc) so it has to save...
I'm attempting to use AvrX 2.6g on an ATmega168 and at first my compilation of everything with the latest WinAVR tools seemed to work. However, I've since...
For "context switch", must save all the processor state for one task. It is ok. When call IntProlog, all registers and SREG state are saved. When IntProlog...
... First of all, you can use sei(); and cli(); to enable and disable interrupts. In the following code you've enabled interrupts rather than disabled as the...
IntProlog is not only used to perform 1/2 context switch in interrupt handlers but also in C procedures that cause a context switch (e.g. AvrXSetSemaphore())....
Brian, Thanks for the suggestions. ... I've reworked my serial code to work more like that provided in the AvrXSimpleSerial.c in AvrXSerialExample20060413.zip...
... Just a quick update with AvrX on the ATmega168. I fixed the issue Brian mentioned above in the serial code, but I did have one line of code before...
hi, I want to know how to port WinAVR libraries into CodeVision so that i can use them with codevision. If anyone has already done that please share (even if...
I decide to begin learning avrX... so here's what I did and problem #1. Installed AVRstudio update 4.13 Installed WinAVR - latest Compiled avrX kernel. No...
All the warnings are new with the latest compiler. The issue is that a lot of folks assumed that signed char (int8_t) == char and freely mixed and matched...
Thanks, Larry. In addition to the type for char issue, the errors I got, shown below, included some where fdevopen() was changed quite a bit - different types...
Hello, Mike! ... No, due to my schedule on the project, I wasn't able to spend more effort to track down this problem. Finally, I didn't use AvrX at all. ...
Clemens Koller
clemens.koller@...
Apr 12, 2007 3:41 am
1552
Hi Steve, ... Unfortunately, this is avrlibc version dependant. I put the following in my code (which isn't avrx related, but has the same issues): I've used...
Thanks much. I changed the code in the serial examples as per the below, sort of, and now there are no compiler errors. I ran the two example serial programs...
Hi Larry, sorry for trouble you so much. I have a question in AvrXIntReschedule. Function AvrXIntReschedule have such codes: sts RunQueue+NextL, p1l sts...
AvrXReschedule() is not well tested. I wrote it long ago as a favor to someone who wanted round-robin scheduling of like priority tasks. Despite not being...
... The example is probably for an earlier version of AVRlibc. In particular, fdevopen was vastly improved. To use the older fdevopen nomenclature, you need...
It's my mistake, I just speculating based upon code inspection. Today I do some test in task reschedule. The two task, task2 and task3 , have the same...
I too am having problems compiling the serial examples. I added the #define __STDIO_FDEVOPEN_COMPAT_12 and got a litle further, but got a link error now. Here...
with the latest WinAVR and AVR Studio, I succeeded in getting the serial I/O examples to compile. O did not change any #ifdefs nor the .h, nor the makefile. I...
Hi I am new with Avrx and I got the AVRX example code MessageTimers.c running fine on my old at90s8515 controller with 4.096 MHz clock. To be able to get it...
Hi all I have a problem with a switch-statement in a avrx-interrupt-routine? In the interrupt routine, I use a switch statement with a static variable. After...