Avr isp mk2 + ATXMEGA 16a4

Go To Last Post
13 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello all

I have AVR studio 5 + AVRISP mk2 + ATXMEGA16A4.

I have trouble with connecting programmator with chip.

I notice that all GND and all VCC (except AVCC) are connected together, so I wired just on of them to AVRISP

I connect in this way:

ISP-->ATXMEGA16a4
1(MISO)-->pin 26
2(VCC)-->pin 9
3(SCK)-->pin 27
4(MOSI)-->pin 25
5(RESeT)-->pin 35
6(GND)-->pin 8

But when I tried to read avr studio return error:

Quote:
Timestamp: 2011-04-01 11:54:43.294
Severity: ERROR
ComponentId: 20100
StatusCode: 0

Programming session setup failed: Failed to enter programming mode. Error status received from tool: Result received is 0x02.

Any ideas?

tnx

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Xmega's use PDI not ISP don't they?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yes, but what is difference; i'm beginner in this..

thnx

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use following connection:
Vcc -> Vcc
Gnd -> Gnd
MISO -> pin 34 (PDI-DATA)
RESET -> pin 35 (RESET/PDI_CLK)
MOSI and SCK are unconnected

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK i will try with PDI;

Is on AVRISP mk2, between VCC and GND always any voltage out(for example 5V), because when I try to measure voltage between VCC and GND is always 0V

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AVRISPmkII will NOT power a target. The reason it has Gnd and Vcc pins is for measuring your target voltage to adapt its level adjusters. You must provide your own power to the IC.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
AVRISPmkII will NOT power a target. The reason it has Gnd and Vcc pins is for measuring your target voltage to adapt its level adjusters. You must provide your own power to the IC.

Tnx for obligation, but for just programming chip i don't need external power to IC, or ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

but for just programming chip i don't need external power

You most definitely DO!

Now for 5V chips there's a very easy solution. If you cut a "four finger" strip of veroboard and poke it into a USB socket the outer two tracks have Gnd and 5V. But I think Xmega are 3.3V aren't they? If so you could probably use the same trick but then make a potential divider with a couple of resistors.

But after you've programmed the chip it needs to be powered to actually do something anyway - how were you planning to power it at that stage? Why can't you use the same while programming?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok, I will try PDI:

Vcc -> Vcc
Gnd -> Gnd
MISO -> pin 34 (PDI-DATA)
RESET -> pin 35 (RESET/PDI_CLK)
MOSI and SCK are unconnected

+ 3.6V to VCC and GND connected on Power supply

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Same as was:

I tried:

ISP->ATXMEGA16A4
gnd->gnd(pin8) ->GND (from power supply)
VCC(not connected) ->VCC(pin 9)->VCC (3.6V from power supply)
MISO -> pin 34 (PDI-DATA)
RESET -> pin 35 (RESET/PDI_CLK)
MOSI and SCK are unconnected

any ideas;
if I tried to connect VCC from ISP connector to VCC on chip(pin 9) which is connected on power supply, then Avr isp mk2 started red led blinking(which indicate that there is short circuit)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just checking but inside Studio it is "PDI" that is selected isn't it?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, I cannot select anything other..which is correct!

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have (and it works also with XMEGA)
AVRISP MKII Hardware Revision 0x01,
Firmware Version 0x010c,
and AVRStudio 4.