I may have a dud board but want to check that I’ve done what I should have, to make this board run properly.
Whilst the chip will program ok via the JTAG interface using WinAVR and AVR Studio, it will not run programs.
Also, the chip will not go into debugger mode and reports an
error as follows:
Loaded objectfile: C:\dev\Atmel
AVR\CAN\CAN_Libraries_and_Examples\avr-can_Led\default\avr-can_Led.elf
JTAG ICE: Warning: Reading the program counter, an invalid value
(0x7FFFFFFF) was received from the device.
JTAG ICE: Warning: A problem occured while executing this debug command!
Please check the connections, the voltage, and the clock system of the
target application!
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 checked voltage is fine 5.08V and made sure 16MHz was selected.
One of the example programs from the Olimex site was used to verify the
board. (http://olimex.com/dev/soft/avr/AVR-CAN/avr-can_Led.zip).
I have verified my programming environment by testing an ATmega32
and the AVR-P40-USB board with all operating normally. Debugging mode
is ok. Also used specific sample C led flashing code from Olimex site. All is good.
Any advice is greatly appreciated.