User Tools

Site Tools


digispark:tutorials:proisp

Differences

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

Link to this comparison view

Next revision
Previous revision
digispark:tutorials:proisp [2014/07/01 11:52]
digistump created
digispark:tutorials:proisp [2014/07/13 03:36]
defragster gave -com3 example
Line 22: Line 22:
  
 {{ :​digispark:​tutorials:​proisp.png?​nolink |}} {{ :​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.
 +
 +Change '-P [COM PORT OF YOUR ARDUINO]'​ to '​com'​ and the right number like: '-P com3'.
 +
 +You may also need to replace the micronucleus command line at Arduino/​hardware/​digistump/​avr/​tools
 +with this one:
 +Windows: https://​github.com/​micronucleus/​micronucleus/​raw/​testing-V2-New/​commandline/​builds/​Windows/​micronucleus.exe
 +Source for Mac/Linux (please post if you compile!): https://​github.com/​micronucleus/​micronucleus/​tree/​testing-V2-New/​commandline
 +
 +==== Troubleshooting ====
 +**Windows:​**
 +
 +**Symptom:​** avrdude.exe won't run and returns the following error:
 +<​code>​The program can't start because libusb0.dll is missing from your computer.
 +Try reinstalling the program to fix this problem.</​code>​
 +
 +Possible Solutions:
 +  * Try copying the 3 .dll files from "​C:​\Program Files (x86)\Arduino"​ into the same directory as avrdude.exe.
 +
 +**Symptom:​** You get the following message when you attempt to program:
 +<​code>​
 +avrdude: Device signature = 0x1e950f
 +avrdude: Expected signature for ATtiny167 is 1E 94 87
 +         ​Double check chip, or use -F to override this check.
 +</​code>​
 +
 +Possible Solutions:
 +  * You may need to force the baud rate avrdude uses to talk to the Ardunio to 19200. ​ Add '-b 19200' to your command line.  Example:
 +<​code>​
 +avrdude -p attiny167 -c arduino -P [COM PORT OF YOUR ARDUINO] -b 19200 -U flash:​w:​ProBootloaderR2.hex:​i
 +</​code>​
digispark/tutorials/proisp.txt · Last modified: 2016/06/09 12:03 (external edit)