
1 changed files with 24 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||||
|
#!/usr/bin/env bash |
||||
|
|
||||
|
export PATH="$HOME/src/ch341eeprom/:$PATH" |
||||
|
|
||||
|
# fvcompile, fvhex2bin, fvflash, fverase |
||||
|
|
||||
|
function fvcompile { |
||||
|
python -m asfv1 -b -c -s $1 $1.bin |
||||
|
} |
||||
|
|
||||
|
function fvhex2bin { |
||||
|
srec_cat $1 -Intel -o $1.bin -binary |
||||
|
} |
||||
|
|
||||
|
function fvflash { |
||||
|
sudo ch341eeprom -v -s 24c32 -w $1 |
||||
|
} |
||||
|
|
||||
|
function fverase { |
||||
|
sudo ch341eeprom -v -s 24c32 --erase |
||||
|
} |
||||
|
|
||||
|
$* |
||||
|
|
Loading…
Reference in new issue