SPIN FV-1 assembler programming. Project template using an all open source toolchain. For mac and linux.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
355 B

#!/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
}
$*