Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
avr_bootloader:paper-avrisp_mk2 [2017/01/06 22:13] admin [Knowledge] |
avr_bootloader:paper-avrisp_mk2 [2020/06/11 22:13] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Paper-AVRISP mkII ==== | ===== Paper-AVRISP mkII ==== | ||
| - | Am AVRISP mkII clone made with Paper-PCBs. The board is based on the ProMicro with the Atmel32U4 chip. | + | |
| + | An AVRISP mkII clone made out of Paper-PCBs.\\ | ||
| + | {{:avr_bootloader:paper-avrisp_mkii.jpg|}}\\ | ||
| + | The controller is a cheap ProMicro with the Atmel32U4 chip. The design is based on the | ||
| + | [[http://make.kosakalab.com/make/electronic-work/avrisp-mk2/leo-r3_avrisp-mk2_en/| | ||
| + | Make the AVRISP mkII Clone from Arduino Leonardo / Micro]] by Kimio Kosaka.\\ | ||
| + | |||
| + | Front:\\ | ||
| + | {{:avr_bootloader:paper-avrisp_mkii_front.jpg?400|}}\\ | ||
| + | Back:\\ | ||
| + | {{:avr_bootloader:paper-avrisp_mkii_back.jpg?400|}}\\ | ||
| ---- | ---- | ||
| Line 6: | Line 16: | ||
| ** TX Line Connection:**\\ | ** TX Line Connection:**\\ | ||
| + | Solder a wire between the resistor of the TX LED and A0.\\ | ||
| {{:avr_bootloader:promicro_txledconnection.jpg?400|}}\\ | {{:avr_bootloader:promicro_txledconnection.jpg?400|}}\\ | ||
| + | |||
| + | ** Close the Jumper: **\\ | ||
| + | The Chinese Pro Micro clones have a 5V converter on board. That means when powered over USB the Pro Micro runs on 4.7V. To close the jumper will avoid that (it´s next to the USB socket). But never power the Pro Micro over the RAW input again! Check the | ||
| + | [[http://cdn.sparkfun.com/datasheets/Dev/Arduino/Boards/SparkFun_Pro_Micro_v13a.pdf|original sparkfun schematic]] for details.\\ | ||
| + | In putting a little bit of solder on J1 of the Pro Micro Clone you close the jumper and bypass the voltage converter of the board. | ||
| **Pin Out:**\\ | **Pin Out:**\\ | ||
| {{:avr_bootloader:promicro_pinout.jpg?400|}}\\ | {{:avr_bootloader:promicro_pinout.jpg?400|}}\\ | ||
| + | |||
| + | ---- | ||
| + | ==== Paper-PCB ==== | ||
| + | {{:avr_bootloader:paper-avrisp_mkii_02.jpg?400|}}\\ | ||
| + | {{ :avr_bootloader:paper-avrisp_mkii_02.zip |}}\\ | ||
| + | |||
| + | ---- | ||
| + | ==== Software ==== | ||
| + | Connect an AVR programmer to the Pro Micro: +5V, GND, Reset, MISO, MOSI, SCLK.\\ | ||
| + | ! It should be the Reset pin on the Pro Micro board not the one of the connector !\\ | ||
| + | |||
| + | With the Avrdude erase the Arduino Pro Micro:\\ | ||
| + | $ sudo avrdude -p m32u4 -c stk500v2 -P /dev/ttyACM0 -e | ||
| + | |||
| + | Set the fuses like that: lowFuse 0xFF, highFuse 0xD9, extendedFuse 0xC3:\\ | ||
| + | $ sudo avrdude -p m32u4 -c stk500v2 -P /dev/ttyACM0 -U lfuse:w:0xFF:m | ||
| + | $ sudo avrdude -p m32u4 -c stk500v2 -P /dev/ttyACM0 -U hfuse:w:0xD9:m | ||
| + | $ sudo avrdude -p m32u4 -c stk500v2 -P /dev/ttyACM0 -U efuse:w:0xC3:m | ||
| + | |||
| + | Burn the ATMega32U4-usbdevice_dfu-1_0_0.hex file on the Pro Micro. The file is included in the megaUSB_DFU_Bootloaders_2 folder:\\ | ||
| + | [[http://make.kosakalab.com/archives/megaUSB_DFU_Bootloaders_2.zip]]\\ | ||
| + | $ sudo avrdude -p m32u4 -c stk500v2 -P /dev/ttyACM0 -U flash:w:ATMega32U4-usbdevice_dfu-1_0_0.hex:i | ||
| + | |||
| + | Set Lock-Bits 0xEF:\\ | ||
| + | $ sudo avrdude -p m32u4 -c stk500v2 -P /dev/ttyACM0 -U lock:w:0xEF:m | ||
| + | |||
| + | Run the [[http://www.atmel.com/tools/FLIP.aspx|Atmel Flip-Tools]] like it's described at [[http://make.kosakalab.com/make/electronic-work/avrisp-mk2/leo-r3_avrisp-mk2_en//|Kimio Kosakas page]].\\ | ||
| + | Upload that file:[[http://make.kosakalab.com/archives/AVRISP-MKII_ATmega32u4.zip]].\\ | ||
| + | |||
| + | That's it! | ||
| + | |||
| + | Test it with an Atmega 328p:\\ | ||
| + | $ sudo avrdude -p m328p -c avrispmkII -P usb -U flash:w:optiboot_atmega328.hex:i | ||
| ---- | ---- | ||
| ==== Knowledge ==== | ==== Knowledge ==== | ||
| - | [[http://make.kosakalab.com/make/electronic-work/avrisp-mk2/leo-r3_avrisp-mk2_en/| | ||
| - | kosakalab - Make the AVRISP mkII Clone from Arduino Leonardo / Micro]]\\ | ||
| - | === The Arduino Pro Micro clone === | + | === The Arduino Pro Micro === |
| [[https://www.sparkfun.com/products/12640]]\\ | [[https://www.sparkfun.com/products/12640]]\\ | ||
| <html> | <html> | ||
| Line 24: | Line 71: | ||
| </div> | </div> | ||
| </html> | </html> | ||
| - | The cheap chinese clones don`t have the 3.3V converter on the board, they have a 5V converter. That means when powered over USB the Pro Micro runs on 4.7V. To close the jumper will avoid that (it´s next to the USB socket). But never power the Pro Micro again over the RAW input! Check the | ||
| - | [[http://cdn.sparkfun.com/datasheets/Dev/Arduino/Boards/SparkFun_Pro_Micro_v13a.pdf|original sparkfun schematic]] for details. | ||
| === Connector === | === Connector === | ||
| Line 31: | Line 76: | ||
| [[http://www.atmel.com/webdoc/atmelice/atmelice.using_ocd_physical_tpi.html|Atmel TPI Interfaces]]\\ | [[http://www.atmel.com/webdoc/atmelice/atmelice.using_ocd_physical_tpi.html|Atmel TPI Interfaces]]\\ | ||
| [[http://www.atmel.com/webdoc/atmelice/atmelice.using_ocd_physical_spi.html|Atmel SPI Interface]]\\ | [[http://www.atmel.com/webdoc/atmelice/atmelice.using_ocd_physical_spi.html|Atmel SPI Interface]]\\ | ||
| + | |||
| + | === Avrdude manual === | ||
| + | [[http://www.nongnu.org/avrdude/user-manual/avrdude_4.html]]\\ | ||
| + | |||
| + | {{:avr_bootloader:paper-avrisp_mkii.jpg?300|}}\\ | ||
| + | ---- | ||
| + | ==== License ==== | ||
| + | |||
| + | The Paper-AVRISP mkII was designed by **Wolfgang Spahn** 2017.\\ | ||
| + | It is licensed under a [[http://creativecommons.org/licenses/by-nc-sa/4.0/"|Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License]]. | ||
| + | |||
| + | <html> | ||
| + | <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a> | ||
| + | </html> | ||
| ---- | ---- | ||