Usblinky: Unterschied zwischen den Versionen
Pl (Diskussion | Beiträge) →Who: His nick is both of his nick in one :D |
|||
Zeile 109: | Zeile 109: | ||
Future versions of USBlinky have the pins swapped as on the original digispark design. | Future versions of USBlinky have the pins swapped as on the original digispark design. | ||
=== Merging the .hex files === | |||
When i programmed the first few usblinky sticks i just uploaded the bootloader and flashed the usblinky program later directly over USB. | |||
That worked great but was timeconsuming, so i looked into merging the bootloader and the userprogram into one .hex file to flash at once. | |||
Turns out that is difficult. | |||
I tried many different approaches but didn't succeed till I did this: | |||
* flash the bootloader | |||
* write the prgram over USB | |||
* 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. | |||
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] | |||
== Who == | == Who == |