Hi,
I'm trying to debug an issue with my code using an atatmel-ice using microchip studio. The ISP connection doesn't support debugging.
What would be the pinout for jtag ?
Thanks.
jtag on 32u4 3v
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- d3xt3r01
- Posts: 3
- Joined: Wed Mar 17, 2021 6:21 am
Re: jtag on 32u4 3v
Found A0-A3 pins connected to the following on the atatmel-ice 10 pin minisquid
A0 : TDI - pin9
A1 : TDO - pin3
A2 : TMS - pin5
A3 : TCK - pin1
pin2 and pin10 GND
pin4 connected to the voltage reference ( powering the itsy from 2x1.5V batteries for example )
I think I got them right, now to burn the jtagen fuse !
A0 : TDI - pin9
A1 : TDO - pin3
A2 : TMS - pin5
A3 : TCK - pin1
pin2 and pin10 GND
pin4 connected to the voltage reference ( powering the itsy from 2x1.5V batteries for example )
I think I got them right, now to burn the jtagen fuse !
- d3xt3r01
- Posts: 3
- Joined: Wed Mar 17, 2021 6:21 am
Re: jtag on 32u4 3v
More tinkering got me to this:
The defaults:
avrdude: safemode: Fuses OK (E:CB, H:D0, L:FF)
Updated using avrdude ... -U hfuse:w:0x10:m
avrdude: safemode: Fuses OK (E:CB, H:10, L:FF)
And I'm off to the races with jtag, all seems to work ok so far !
The defaults:
avrdude: safemode: Fuses OK (E:CB, H:D0, L:FF)
Updated using avrdude ... -U hfuse:w:0x10:m
avrdude: safemode: Fuses OK (E:CB, H:10, L:FF)
And I'm off to the races with jtag, all seems to work ok so far !
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: jtag on 32u4 3v
Yep.. I'd forgotten that the ATmega32u4 has a JTAG interface, but it is listed in table 10-13 under section 10.3.6 of the datasheet: Alternative Functions of Port F
Glad to hear you got it working!
Glad to hear you got it working!
Please be positive and constructive with your questions and comments.