Skip to content

Commit 8fd5afb

Browse files
Fix flash_over_usb.sh and install.sh
1 parent 6e934a4 commit 8fd5afb

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

scripts/flash_over_usb.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
fwfile="../lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin"
1+
mydir=$(readlink -f "$0")
2+
mydir=$(dirname "$mydir")
3+
fwfile="$mydir/../lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin"
24
ls -al $fwfile
35
echo "Add --erase-all if needed"
46
sleep 5
57
# This needs python and the esptool
6-
~/.espressif/python_env/idf5.2_py3.9_env/bin/python -m esptool --chip esp32s3 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 16MB --flash_freq 80m $1 0x0 $fwfile
8+
~/.espressif/python_env/*/bin/python -m esptool --chip esp32s3 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 16MB --flash_freq 80m $1 0x0 $fwfile
79

scripts/install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
mydir=$(readlink -f "$0")
2+
mydir=$(dirname "$mydir")
3+
14
pkill -f "python.*mpremote"
25

36
target="$1"
@@ -14,7 +17,7 @@ fi
1417

1518

1619

17-
mpremote=$(readlink -f "../lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py")
20+
mpremote=$(readlink -f "$mydir/../lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py")
1821

1922
pushd internal_filesystem/
2023

0 commit comments

Comments
 (0)