Commit 10eb712c7afdd76c246f22dec3f0472536ad6606

Authored by dmohamed
1 parent 37b30070

ADD - Ajout d'un script pour make puis flasher l'atmega16

Showing 1 changed file with 12 additions and 0 deletions   Show diff stats
gadget/Burn.sh 0 → 100755
@@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
  1 +#!/bin/sh
  2 +
  3 +#make the hex file
  4 +make all
  5 +#erase the memory
  6 +sudo dfu-programmer atmega16u2 erase
  7 +#rewrite the ROM
  8 +sudo dfu-programmer atmega16u2 flash USB_gadget.hex
  9 +#reset
  10 +sudo dfu-programmer atmega16u2 reset
  11 +#clean repository
  12 +make clean