SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on the software and hardware for Atmel's STK standard.
By meissner.a
#1437
Hi all,

I'm trying to use the AVRJTAG with the atmega128 and AVRStudio.
I've updated the AVRJTAG with the AVRStudio as described on the OLIMEX page. Now I load the *.cof file of my application and choose in AVRStudio the JTAG ICE platform and ATmega128 device.
The application is not running on the device and if I break the execution, AVRStudio will give me the following error messages:

Loaded partfile: D:\Programme\Atmel\AVR Tools\PartDescriptionFiles\ATmega128
Loaded objectfile: D:\Projekte\Atmel_AVR\Test_128\test_128.cof
Error reading memory IO Address:0 Size:64
Error reading memory REGISTERS Address:0 Size:32
Error reading memory SRAM Address:96 Size:160
JTAG ICE Warning: Reading the program counter, an invalid value (0x7FFFFFFF) was received from the device.
Error reading programcounter
Error reading memory IO Address:0 Size:64
Error reading memory REGISTERS Address:0 Size:32
Error reading memory SRAM Address:96 Size:160


I can read the signature and handle the fuses in the JTAG ICE dialog box.
Both fuses - OCDEN and JTAG - are correct (marked).

What I'm doing wrong. Do I need a bootloader already installed in the device?

Any suggestions?

Andreas
By OLIMEX
#1444
what hardware schematic?
what software project?
Tsvetan
By meissner.a
#1446
I have checked my schematic. There was a permanent connection between the /PEN pin an ground (maybe a hair on the mask of the my board). So the atmel was permanent in programming mode and do not execute any code.

Thanks for food for thought :idea:

Andreas