Skip to content
Snippets Groups Projects
Commit d01b157c authored by Wesley W. Terpstra's avatar Wesley W. Terpstra
Browse files

usb: add an option to test a program without flashing it

parent 3c044509
Branches
Tags
No related merge requests found
......@@ -20,8 +20,10 @@ dev=`busid $PROGRAMMED $RAW_CYPRESS`
# If unprogrammed, "usbtest" steals the device
rmmod usbtest 2>/dev/null
if [ "$1" = "-E" ]; then
if [ "$1" = "-E" ]; then # erase
fxload -D "$dev" -tfx2lp -I erase_eeprom.ihx -v
else
elif [ "$1" = "-T" ]; then # test
fxload -D "$dev" -tfx2lp -I cdc_acm.ihx -v
else # flash
fxload -D "$dev" -tfx2lp -I cdc_acm.ihx -s vend_ax.hex -c 0x41 -v
fi
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment