Zakupiłem programator z ICE w jednej obudowie: http://www.allegro.pl/item916923394_usb_avr_box_ii_programator_stk500v2_jtag_ice.html
W AVRstudio napisałem do przetestowania następujący program:
Program się kompiluje, można wgrać przez SPI i JTAGa. Fuse OCDEN i JTAGEN ustawione. Klikam START DEBUGGING i wyrzuca:
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
Większość tematów o tym sprowadza się do złego zasilania jakiejś evaluation board lub błędnych połączeń. Połączenia OK, program się wykonuje (testowałem USARTy), zasilane z 2 USB więc ma od dyspozycji 1A.
W AVRstudio napisałem do przetestowania następujący program:
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <stdlib.h>
#include <avr/interrupt.h>
#define FOSC 11059200// Clock Speed
#define BAUD 9600
#define MYUBRR FOSC/16/BAUD-1
int main(void)
{
DDRA=0xFF;
PORTA=0xFF;
DDRB=0x00;
while(1)
{
}
}
Program się kompiluje, można wgrać przez SPI i JTAGa. Fuse OCDEN i JTAGEN ustawione. Klikam START DEBUGGING i wyrzuca:
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
Większość tematów o tym sprowadza się do złego zasilania jakiejś evaluation board lub błędnych połączeń. Połączenia OK, program się wykonuje (testowałem USARTy), zasilane z 2 USB więc ma od dyspozycji 1A.
