File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash -i
2+
3+ set -e
4+
5+ get_idf
6+
7+ FWPATH=" ../../ESP32/vesc_express/"
8+ DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
9+
10+ mv $FWPATH /main/conf_general.h $FWPATH /main/conf_general_tmp.h
11+
12+ # Express
13+ BOARD=" $DIR /res/firmwares_esp/ESP32-C3/VESC Express"
14+ cd $FWPATH
15+ cp " $BOARD /conf_general.h" main/
16+ idf.py build
17+ cp build/vesc_express.bin " $BOARD "
18+ cp build/partition_table/partition-table.bin " $BOARD "
19+ cp build/bootloader/bootloader.bin " $BOARD "
20+
21+ # Devkit
22+ BOARD=" $DIR /res/firmwares_esp/ESP32-C3/DevKitM-1"
23+ cd $FWPATH
24+ cp " $BOARD /conf_general.h" main/
25+ idf.py build
26+ cp build/vesc_express.bin " $BOARD "
27+ cp build/partition_table/partition-table.bin " $BOARD "
28+ cp build/bootloader/bootloader.bin " $BOARD "
29+
30+ # STR365
31+ BOARD=" $DIR /res/firmwares_esp/ESP32-C3/STR365"
32+ cd $FWPATH
33+ cp " $BOARD /conf_general.h" main/
34+ idf.py build
35+ cp build/vesc_express.bin " $BOARD "
36+ cp build/partition_table/partition-table.bin " $BOARD "
37+ cp build/bootloader/bootloader.bin " $BOARD "
38+
39+ # VBMS32
40+ BOARD=" $DIR /res/firmwares_esp/ESP32-C3/VBMS32"
41+ cd $FWPATH
42+ cp " $BOARD /conf_general.h" main/
43+ idf.py build
44+ cp build/vesc_express.bin " $BOARD "
45+ cp build/partition_table/partition-table.bin " $BOARD "
46+ cp build/bootloader/bootloader.bin " $BOARD "
47+
48+ mv $FWPATH /main/conf_general_tmp.h $FWPATH /main/conf_general.h
49+ rm -r $FWPATH /build
50+
You can’t perform that action at this time.
0 commit comments