Sorry for the extra noise in this list, since the thread is off-topic,
but I never like to leave a mistake as the last word in a thread...
On 30/05/2010 20:15, Jose Torres wrote:
Leiu:
Use: volatile *static* uint8_t first_edge = 'A';
Otherwise the compiler will allocate the variable on the call stack or
optimize it out completely.
That would be the case if the declaration of "first_edge" had been
within the ISR function. But it's at file scope, and thus has a
permanent lifetime.
Leiu, your ISP function itself looks okay as it stands, but there are
three obvious weak points that you should look at. First is the
avr2pc() function - since you've given us nothing to work on, no one can
tell you if the bug lies there. Do more checking and testing on that
function, and post more details if you are having problems.
Second, there may be issues with your hardware or serial port - check it
properly.
Third, drop "hyperterminal". It is far and away the worst possible
terminal program, and could well be the problem itself. Get a better
one - there are hundreds available free. I /really/ don't want to start
a discussion here about which terminal programs are the best, so I'll
just give you one - "Tera Term Pro".
Other than that, as Jørg says, post in avr-gcc-l...@nongnu.org for more
help.
mvh.,
David
- Jose
On Sun, May 30, 2010 at 8:41 AM, Joerg Wunsch<j...@uriah.heep.sax.de> wrote:
As Leiu wrote:
Please tell me why?
Because you didn't show us full, compilable code so nobody
could ever possibly reproduce your problem.
Please use avr-gcc-l...@nongnu.org for that kind of questions.
avr-libc-dev is meant for people who like to develop on avr-libc, or
have in-depth questions about its internals.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev