User Tools

Site Tools


avr:linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
avr:linux [2013/09/10 12:30] sdoltavr:linux [2013/09/10 12:44] sdolt
Line 138: Line 138:
  
 ^JTAG 10pin^ISP 6pin^STK500^ ^JTAG 10pin^ISP 6pin^STK500^
-|1-TCK      | 3|PB2 (SCK)| +|1-TCK|3|PB2 (SCK)| 
-|2-GND      | 6|GND| +|2-GND|6|GND| 
-|3-TDO      | 1|PB1 (MISO)| +|3-TDO|1|PB1 (MISO)| 
-|4-VTref    | 2|Vcc| +|4-VTref|2|Vcc| 
-|5-TMS         || +|5-TMS|x|x
-|6-nSRST    | 5|PB5 (RST)| +|6-nSRST|5|PB5 (RST)| 
-|7-Vsupply     || +|7-Vsupply|x|x
-|8-nTRST       || +|8-nTRST|x|x
-|9-TDI      |4   |PB0 (MOSI )| +|9-TDI|4|PB0 (MOSI )| 
-|10-GND        | |+|10-GND|xx|
  
  
 +Mainteant, si on essaie de programmer de désactiver debugWire :
  
 +<file.sh>
 +avrdude -c jtag2isp  -P usb:070000004DAA  -p t85 -U hfuse:w:0xdf:m
 +</file>
 +
 +On obtient le message suivant :
 +<file.sh>
 +avrdude: jtagmkII_setparm(): bad response to set parameter command: RSP_FAILED
 +avrdude: jtagmkII_getsync(): ISP activation failed, trying debugWire
 +avrdude: Target prepared for ISP, signed off.
 +avrdude: Please restart avrdude without power-cycling the target.
 +
 +avrdude done.  Thank you.
 +</file>
 +
 +<note important>AVRDUDE a désactiver provisoirement debugWire, il ne faut pas redémarrer la processeur</note>
 +On peut donc relancer la commande pour programmer le fusible hfuse.
  
 <file.sh> <file.sh>
-avrdude -u -V -c jtag2dw  -P usb:070000004DAA  -p t85 -U hfuse:w:0xdf:m+avrdude -c jtag2isp  -P usb:070000004DAA  -p t85 -U hfuse:w:0xdf:m
 </file> </file>
  
avr/linux.txt · Last modified: 2013/09/18 12:53 by sdolt