From 10eb712c7afdd76c246f22dec3f0472536ad6606 Mon Sep 17 00:00:00 2001 From: dmohamed Date: Sun, 2 Jul 2017 19:59:13 +0200 Subject: [PATCH] ADD - Ajout d'un script pour make puis flasher l'atmega16 --- gadget/Burn.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+), 0 deletions(-) create mode 100755 gadget/Burn.sh diff --git a/gadget/Burn.sh b/gadget/Burn.sh new file mode 100755 index 0000000..bcbca20 --- /dev/null +++ b/gadget/Burn.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +#make the hex file +make all +#erase the memory +sudo dfu-programmer atmega16u2 erase +#rewrite the ROM +sudo dfu-programmer atmega16u2 flash USB_gadget.hex +#reset +sudo dfu-programmer atmega16u2 reset +#clean repository +make clean -- libgit2 0.21.2