Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

ICSP function return to *no mans land* / reset

2004-02-10 by inpactmicro

OK i figured out the program loop problem I am having isnt (directly)
attributable to my code
If I PURELY simulate the code (simple loop to set ports high and low
after initialisation function) there is no problem
I can see the ioports (virtually) going high and low on the AVR studio

HOWEVER..................

when I hook everything up to my JTAG ICE emulator/programmer and try
and program this into my device (DIRECTLY WITHOUT EMULATION) it
doesnt behave as it should (i.e LEDs dont come on and off as they do
in the simulation)

on stepping through the code using the emulator I can see (in the
disassembler) the code working away (and the pins twiddling as they
should (both in real life and virtually on the avr studio))
BUT!!!!
on the first "ret" at the end of the first function call it wanders
off into empty program space and thats where it gets lost and it
never comes out of the first function call

Help!!!!!!!!!!!!!

and thanks


BTW Im trying to program the atmega128 programmed using imagecraft 
simulated iin avrstudio
programming is done ICSP with JTAG ICE

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.