User Tools

Site Tools


digispark:tutorials:proisp

Differences

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

Link to this comparison view

digispark:tutorials:proisp [2014/07/01 12:01]
digistump
digispark:tutorials:proisp [2016/06/09 12:03]
Line 1: Line 1:
-======Upload a bootloader to the Pro over ISP====== 
  
-If the Digispark Pro bootloader becomes corrupted (generally only a concern on Beta units), or you want to replace it with another bootloader, upload code directly (to avoid the bootloader taking up space), or download the existing code to a computer - then you can use AVR-ISP to do so. 
- 
-==== First get the software: ==== 
- 
- 
-You will need the hex file to upload and a current version of AVRDUDE that can talk to the Attiny167 (the main chip on the Digispark Pro). 
- 
-**Windows** - everything you need is here, just unzip to a folder: {{:​digispark:​tutorials:​avrdude.zip|}} 
- 
-**OS X:** Grab and install the AVR Crosspack (or another AVRDude copy) http://​www.obdev.at/​products/​crosspack/​index.html and then put the following avrdude.conf (unzip first) in the same folder as AVRDude, replacing the existing one: {{:​digispark:​tutorials:​avrdude_conf.zip|}} 
- 
-**Linux:** Grab a recent version of AVRDude (from package manager, or binary, or build it) and then put the following avrdude.conf (unzip first) in the same folder as AVRDude, replacing the existing one: {{:​digispark:​tutorials:​avrdude_conf.zip|}} 
- 
- 
-==== Connect your pro to an ISP programmer or Arduino UNO: ==== 
- 
-Connect your Pro to an Uno with the Arduino ISP sketch loaded (Examples->​ArduinoISP) or connect it to an AVRISP programmer. 
- 
-If connecting to an Uno follow the diagram below. For an ISP programmer connect MOSI to MOSI, MISO to MISO, SCK to SCK, RST to RST, VCC to VCC (should be 5v) and GND to GND. Look at the bottom of the Digispark Pro for the pin names or this pin out chart: http://​digispark.s3.amazonaws.com/​DigisparkProDiagram2.png 
- 
-{{ :​digispark:​tutorials:​proisp.png?​nolink |}} 
- 
-==== Get a hex file to upload ==== 
-The latest Pro bootloader (Micronucleus V2) is here: {{:​digispark:​tutorials:​probootloaderr2.zip|}} 
-Unzip and place in the folder with avrdude ​ 
- 
-Open a command prompt/​shell in the folder that contains AVRDude - and use the following command (if using the arduino uno): 
-<​code>​ 
-avrdude -p attiny167 -c arduino -P [COM PORT OF YOUR ARDUINO] -U flash:​w:​ProBootloaderR2.hex:​i 
-</​code>​ 
-If you are not using an arduino uno change the "-c arduino"​ to match your device. 
digispark/tutorials/proisp.txt · Last modified: 2016/06/09 12:03 (external edit)