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
boards:mega2560 [2022/11/10 16:07] darronboards:mega2560 [2023/09/27 11:22] (current) – [JTAG] darron
Line 2: Line 2:
  
 <wrap right> <wrap right>
 +{{boards:mega2560-1.jpg?200}}
 +\\ \\
 {{boards:arduino-mega-pinout-diagram.png?200|Pinout}} {{boards:arduino-mega-pinout-diagram.png?200|Pinout}}
 </wrap> </wrap>
Line 7: Line 9:
 Arduino and clones using the ATmega2560. Arduino and clones using the ATmega2560.
  
 +
 +===JTAG===
 +
 +Enable jtag on arduino mega 2560
 +
 +<code>
 +avrdude -B 5 -P `pavr2cmd --prog-port` -c avrisp2 -p m2560
 +avrdude -B 5 -P `pavr2cmd --prog-port` -c avrisp2 -p m2560 -e -U efuse:w:0xFD:m -U hfuse:w:0x18:m -U lfuse:w:0xFF:m
 +</code>
 +
 +Test
 +
 +<code>
 +avrdude -B 5 -c atmelice -p m2560
 +</code>
 +
 +^Pin ^ Funcion^
 +|PF4 |TCK |
 +|PF5 |TMS|
 +|PF6 |TDO|
 +|PF7| TDI|
 +
 +===Resources===
 +
 +[[https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/ATmega640-1280-1281-2560-2561-Datasheet-DS40002211A.pdf|Data-sheet]]