Anonymous

Project:YAAC: Difference between revisions

From London Hackspace Wiki
Line 119: Line 119:
From the prompt run:<br>
From the prompt run:<br>


$ sudo dfu-programmer at90usb162 erase<br>
$ sudo dfu-programmer at90usb162 erase
$ sudo dfu-programmer at90usb162 flash --debug 20 /tmp/build<...>.tmp/<filename>.cpp.hex <br>
$ sudo dfu-programmer at90usb162 flash --debug 20 /tmp/build<...>.tmp/<filename>.cpp.hex  
$ sudo dfu-programmer at90usb162 start<br>
$ sudo dfu-programmer at90usb162 start


Note, the device must be reset before proceeding with the 3 steps above. Also, AFAIK, you must be root to access the USB device. If you forget sudo, strange things might happen e.g. code not burning, device not erasing and starting, etc, though no error message will be given - it will fail silently.
Note, the device must be reset before proceeding with the 3 steps above. Also, AFAIK, you must be root to access the USB device. If you forget sudo, strange things might happen e.g. code not burning, device not erasing and starting, etc, though no error message will be given - it will fail silently.
Anonymous user