I'm merrily coding away on my first serious project using AVRX under GCC, and I have a question: How does one properly (and safely) calculate the stack space...
It is essentially impossible to calculate the stack needed. I allocate plenty of extra and inspect a running system to figure out how much is used. Then I...
Hi @ all, at the first, sorry for my bad english. I want to use avrx in the future, but i want to 'debug' the functionality of my code with simple PrintString...
A single character is classic of the interrupts not being enabled, or having the wrong text name for the handler, so it never gets called. If you use stdio...
I would second Larry's comments. Note that if your code is supposed to print "Hi!" and the terminal displays "~!@#$&^&*(d", you probably have a baud rate...
I am fighting this right now and finally tracked it down to the SIG_UART_DATA and SIG_UART_RECV interrupts not being the in vector table. After the second...
... You might look at my library (previously mentioned) in the files area of this Yahoo group. It works, so you can use it as an example -- or just use it. ...
There is no "SIG_UARDT_..." on the mega162. Please review the appropriate header file (iom162.h) to get the right names. Unfortunately, GCC interrupt...
There is a "#if defined (SIG_UART0_RECV)" in the serialio.s file that I added "#define SIG_UART_DATA SIG_UART0_DATA" in there. It compiled so I thought...
Yeah, the #defines change every so often. The rule is that the GCC header files try to match Atmel documentation as much as possible, so if Atmel decides to...
I wrote a short article on stack depth that you might take a look at: http://www.embedded.com/showArticle.jhtml?articleID=47101892 John Regeh -- John Regehr,...
Hi @ all, at the first, sorry for my bad english. Is there any way to calculate the time between two timerticks ? If i run the avr with a 16 MHz crystal, and...
I can recommend two methods of actually measuring the time required; in my opinion, this is a necessary complement to calculation, as it is based on actual...
I have the same problem. It compiled after inserting the following lines to Serialio.s: #if defined(UBRRL) # define UBRR UBRRL #endif ... (before the ... ...
The timer ticks are precise. They have (almost) nothing to do with the time it takes to execute the timer routine. The issue is: can you really represent a...
Excellent explanation Steve. With the newer mega parts you can put the timers into CTC mode, where one of the compare registers acts like the reset count. The...
I tried to compiler the samples in "Examples" and "TestCases" Folders, but I always got the following errors: BasicTest1.c:66: error: invalid lvalue in...
... Looks very much like you either have a bad installation of the compiler tools, or haven't selected the chip to use in the AVRX example/test code makefiles,...
Thank you for the reply!!! I found out my problem, and it works after I command out the following line: //#define _SFR_ASM_COMPAT 1 ... Folders, ... variables ...
Hi, I am a beginner using avrx. I would like to structure my source tree such that each file contains only one task and including them in the main file ...
I think you use AVRX_EXTERNTASK(start) for external prototype. So in your case, below, task1.h would contain AVRX_EXTERNTASK(task1); And task1.c would have ...
I'm prototyping a closed-loop PWM DC motor controller with the ATMega32, and I'm looking with interest at smaller chips, as my code uses about 5500 bytes of...
TQFPs are very easy to solder. Just get liquid flux (like a felt tip pen) and paint all the PCB lands. Then hold the chip with your finger against the board...
Indeed, I've been there. Most SOIC are easy to solder, but the 0.8 mm pitch chips are a bit harder (though still not beyond reason; still, I've had assembly...
Avrx can shoehorn two or three processes + the kernel stack into 512 bytes but that would leave little else for other stuff and wouldn't support many ...
Thanks! Since I have two tasks and two interrupt sources, one within AVRX and one outside, it *should* work in 512 bytes. Gotta see what the run-time analysis...
Hi, Whilst looking through the timer code for AvrxStartTimer, I think I've found a small window of opportunity for the function to fail due to an interrupt at...
I have had similar problems but the fault was mine ... I was starting a timer, then starting the timer again. Start Timer1 Start Timer1 WRONG! The following,...