Occasionally when calling AvrXDelay with interrupts blazing, I've noticed between the call to AvrXWaitTimer and the BeginCritical section below, that one of...
If all registers are saved & restored properly during and ISR then the following code can be interrupted and will continue properly upon return. AvrX only...
I confirmed that there are no non-AvrX interrupts. So I must be fooling IntProlog into not saving the context when it should. Perhaps I'm corrupting the...
This problem turned out to be hardware related. Once the hardware was fixed, I've had no trouble with AvrXDelay. FWIW, another symptom of the problem was that...
I'm no hardware engineer, but I was sure it was the external clock, however it always checked out OK. Turned out to be improper voltage to the chip for the...
I am implementing the AVRX FIFO on the serial port on a MEGA-8 running at 8MHz. I have been testing it at 38400bps and am loosing the occasional character....
... running ... from ... fifo ... testing. If ... it at ... before? ... My answer is not very AVRX oriented. I hope others in the group will tolerate this use...
Thanks Dave, More information available: I am not typing, you can configure the Bray terminal program with a string to send and then 'blast' it at the serial...
Hi Shane, ... So, another datapoint completely unrelated to avrx. I can receive a serial stream at 1 Mbs (mega-bit/sec) using an Atmega-8 at 8MHz. This is...
The performance/efficiency of the AvrX FIFO code isn't the issue here; it's very small and cycle-efficient. I think the most immediately relevant question here...
AvrXWaitTask is apparently an incomplete API. It appears in the header file but is otherwise never referenced. You are right it can't work... ... From:...
I am a green hand,I began to study avr mcu three weeks ago,and I began to study rtos a week ago,i don't know why do the avrx and the uc/os2 use static task...
There is no particular reason stacks and TCBs can't be dynamically allocated. All data structures are referenced by pointer. I used static allocation because...
I just found this kernel, and have been trying to experiment with it. But alas the example code always gets this error (along with others, but this appears to...
... I get a ton of errors (but not the one you got) with 'make Timers' but everything works great with just 'make' I didn't try to find out why there are...
... I forgot to mention I started with 'make all' in the first place and only moved on to make Timers when trouble arose. I also forgot to mention I was using...
To the original poster: dynamic memory allocation is often frowned upon in very small embedded systems since it can make programs much harder to reason about....
I don't use malloc/free.I think that it's very slow. I've defined a large array,and create task stack and PID in array in AvrXInitTask,in AvrXTerminate,I mark...
After implementation I can report back on my limited findings. An ATMEGA8 running at 8MHz using AvrXFifo has no problem supporting 38400 bps on the serial...
I have a gap in my knowledge about AVRX and hope the group can provide the answers. Will a task swap happen as a consequence of a timer interrupt and ...
I believe the AvrXFifo.h file is faulty. When AVRX_INIT_FIFO is used in the same source file as AVRX_EXT_FIFO <fifoName>FifoSz is undeclared The macro:...
Yes, assuming a higher priority task has been scheduled as a result of the timer tick. The answer to your second question is No. The calling task will simply ...
Thanks Larry, That clears it up for me. Pretty much works as I expected. I agree with your comment about AvrXYield but I have myself in a situation where I...
You are close. Yield is unnecessary and wasteful and won't do what you want. What you want is to protect shared data structures accessed with non-reentrant...
Hi Shane, ... You want to put a small sleep between each request. Otherwise, your thread may consume all of the CPU and not allow other threads to even release...
If the system can run out of buffer space and needs to wait, then some sort of message queue of malloc requests could be set up. The "myFree" routine would...