Photos of the technical side of Halloween - or maybe, Why I've Been Really Really Busy for the last two months. These are shots of parts of a Halloween Hayride...
Hello! So, now I have a strange problem. Sometimes my code, especially in switch statements, creates curious results. The wrong case was selected. After some...
Hello all, I have a couple of questions related to the AvrX tasks. Here we go: 1. Is it possible to have a dynamic number of tasks? What I want to do is to be...
... No. ... You can start and stop them ( I can't recall the function but there are start/stop task calls), but they are staticly defined. ... Use a global...
Is the scheme that is followed for the task priorities ascending or descending? i.e. has a task with priority 10 higher priority than a task with 5 or vice...
Hello, I'm working on ROBIN http://www.bdmicro.com/code/robin/ port for avrx and I now use SIGNAL for my rs interrupts ( so rs485 traffic doesn't use avrx...
Solution B should work fine. The worst case is that the interrupted context will have a dozen or so bytes of extra stuff on the stack, from the SIGNAL. To...
After many try and error iterations I just decided to suffer for now and implement fancy software interrupt thingie if I suffer too much.. Thanks for your...
I newer bother to put my JTAG debugger online and look when stacks are too small, so I decided to solve my problem like this.. I know it's ugly it consumes...
Yes. Just have them all wait on the same semaphore and have the caller call AvrXSetSemaphore until the queue is empty (e.g. mutex == NULL) Nice idea with the...
Hi Phillip, Did you ever get AvrX to work on an Atmega48? I am trying to do the same thing myself at the moment but don't want to flog a dead horse, so to...
I'm using AvrX on Mega-48s in my Halloween candles. It's way overkill for the candles, but it works fine. I have three small tasks running (the lights, the...
Hi Bill, Did you have to make many changes to the AvrX distribution code to get it to work with the Atmega48? I've managed to get the avrx library to compile...
First - get the latest (2.6f I think) code from Larry Barrello's home page. It compiles without problems under GCC. Also, make sure you have the latest...
On the other hand, while the Kernel seems to be perfectly clean, I've rarely been able to compile specific examples for my hardware. I just read the examples...
Hi all I'm quite new to AvrX. Working with the buffered serial io i found a strange problem: I have a task that uses buffered serial output to send some...
Historically AvrX did not set up a frame pointer. Using low levels of optimization, or taking the address of an automatic variable (or declaring an array...
In my opionion, the interrupt routine you show below runs so quickly that I would never, never, have the code to disable UDRIE interrupts and the sei() and the...
It depends. Leaving interrupts off for the entire ISR blanks out interrupts for 300-400 cycles. That could be too much depending upon what your other ISR...
Roger that. I'm unaccustomed to a micro doing general purpose serial I/O but simultaneously running code which needs such low interrupt latency. The buffered...
What's about changing the code like this...? AVRX_SIGINT(SIG_UART0_DATA) { IntProlog(); //<- move before declaration of i int c; Does gcc generates c now in...
... No, as Larry already mentioned, the reason why there is no stack frame is the attribute "naked" given to the ISR function. He also gave a possible...
Hi there, I am looking for a good way to check the actual stack usage of each of the processes. I am rather new to OS's. One option would be to fill the memory...
... I'm assuming you're using GCC here. Declare _end so as the code below can determine the start of free RAM. You may also need to declare the stack space in...
Hello everyone, I am using AvrXSendMessage a lot in my code to have the different processes communicate. In the 'AvrX Issues' thread, I saw there is an issue...