Send command to enter bootloader when flashing
parent
b03e20d7cf
commit
0bf5ac3a9c
1
Makefile
1
Makefile
|
@ -35,6 +35,7 @@ $(PROGNAME).hex: $(PROGNAME).elf
|
|||
fuse:
|
||||
|
||||
flash: $(HEXFILE)
|
||||
./enter_bootloader.sh
|
||||
./wait_then_flash.sh $(CPU) $(HEXFILE)
|
||||
|
||||
chip_erase:
|
||||
|
|
|
@ -38,6 +38,7 @@ clean:
|
|||
fuse:
|
||||
|
||||
flash: $(HEXFILE)
|
||||
./enter_bootloader.sh
|
||||
./wait_then_flash.sh $(CPU) $(HEXFILE)
|
||||
|
||||
chip_erase:
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
TOOL=./tool/gcn64ctl
|
||||
|
||||
if [ -x $TOOL ]; then
|
||||
$TOOL -f --bootloader
|
||||
else
|
||||
echo $TOOL not found. Please compile it to enter bootloader automatically.
|
||||
fi
|
|
@ -0,0 +1 @@
|
|||
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="289b", ATTRS{idProduct}=="0017", MODE="0664", GROUP="plugdev"
|
Loading…
Reference in New Issue