From dca64a6b4e3de51b3fb1887088bc55b58db125e4 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 12 Feb 2022 11:48:00 -0500 Subject: [PATCH] openblt doesn't work proteus f7 #3483 --- firmware/flash_can.sh | 6 ++++++ firmware/flash_dfu_openblt_only.sh | 2 +- firmware/frash_dfu_erase.sh | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 firmware/frash_dfu_erase.sh diff --git a/firmware/flash_can.sh b/firmware/flash_can.sh index c16e43c497..ad5585ce26 100644 --- a/firmware/flash_can.sh +++ b/firmware/flash_can.sh @@ -5,8 +5,14 @@ # You may want to bring can0 interface up first: # sudo ip link set can0 type can bitrate 500000 ; sudo ifconfig can0 up # Sometimes (after communication errors) you may like to restart interface with: +# make sure that you have termination resistor # sudo ifconfig can0 down; sudo ip link set can0 type can bitrate 500000 ; sudo ifconfig can0 up +# sudo apt-get install can-utils +# candump can0 + +/sbin/ifconfig can0 | grep RUNNING + echo This script assumes that you are using can0 interface and it is ready, otherwise read comments inside echo This script assumes that you have BootCommander somewhere in your PATH, otherwise read comments inside BootCommander -t=xcp_can -d=can0 deliver/rusefi_update.srec diff --git a/firmware/flash_dfu_openblt_only.sh b/firmware/flash_dfu_openblt_only.sh index 4711584672..04ef175e83 100644 --- a/firmware/flash_dfu_openblt_only.sh +++ b/firmware/flash_dfu_openblt_only.sh @@ -4,4 +4,4 @@ # User should prefer to flash composite image, # see flash_dfu.sh/flash_dfu.bat -dfu-util --alt 0 --download deliver/openblt.dfu --reset +sudo dfu-util --alt 0 --download deliver/openblt.dfu --reset diff --git a/firmware/frash_dfu_erase.sh b/firmware/frash_dfu_erase.sh new file mode 100644 index 0000000000..2b7f2462dd --- /dev/null +++ b/firmware/frash_dfu_erase.sh @@ -0,0 +1 @@ +sudo dfu-util --alt 0 -s 0x8000000:mass-erase:force \ No newline at end of file