Zum Inhalt springen

Usblinky: Unterschied zwischen den Versionen

link fix
Overflo (Diskussion | Beiträge)
Zeile 120: Zeile 120:
I tried many different approaches but didn't succeed till I did this:
I tried many different approaches but didn't succeed till I did this:
* flash the bootloader
* flash the bootloader
* write the prgram over USB
* load the userprogram over USB
* read back the flash from the attiny (avrdude -p attiny85 -P usb -c usbtiny -U flash:r:flash.hex:i)  
* read back the flash from the attiny (avrdude -p attiny85 -P usb -c usbtiny -U flash:r:flash.hex:i)  
* write that dump to future usblinky sticks.
* write that dump to future usblinky sticks


All the relevant script for reading and writing and a script for semi-automated flashing in a loop can be found [https://github.com/hackerspaceshop/usblinky/tree/master/software/builds/scripts here on github]
All the relevant script for reading and writing and a script for semi-automated flashing in a loop can be found [https://github.com/hackerspaceshop/usblinky/tree/master/software/builds/scripts here on github]