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...
No, you are right to add the code. I have made a few touch-up's since 2.6f and, in my usual way, completely dropped publishing the code. Hmm. Perhaps some...
Thanks brian, it took a while before I actually found the time to have a look at it. It all works fine and I seem to have lots of space left. Greetz, Marijn...
Hi there, I just ran through my code when I noticed that at some point the software waits for a message on the queue. If the message is from a timermessage, it...
... There won't be a problem cancelling a timer message more than once. If the TMB is in the timer queue, it will be removed and the TMB count will be added to...
well it sounds good to me. I just installed avrx an hour or so ago and havent got the example to compile yet due to serialio.S found posts dated as far back as...
Thanks Brian, for the quick response. This answer will have me sleep better ;-) ... Van: avrx@yahoogroups.com [mailto:avrx@yahoogroups.com]Namens Brian Logan ...
... and ... The 162 has 2 UARTs, so you need to be more specific which one you want to use. Have a look at the datasheet and header files how the right...
Hi. is anybody on this list using AVRX with the IAR compiler? If yes, where can I download an IAR compatible version? Any specific problems? Thanks, Yvon....