Skip to content

Commit 34026b2

Browse files
committed
Detect flash size in flash script.
1 parent 6f5c81f commit 34026b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/flash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ fi
4646
FILESYSTEM_NAME="$(echo ${BUILD_PATH}/konnected-filesystem-0x*-${VERSION}.img)"
4747
FS_ADDRESS="$(cut -d'-' -f5 <<<${FILESYSTEM_NAME})"
4848

49-
esptool.py "--port=${PORT}" write_flash --flash_mode dio 0x00000 "${FIRMWARE_NAME}"
50-
esptool.py "--port=${PORT}" write_flash --flash_mode dio "${FS_ADDRESS}" "${FILESYSTEM_NAME}"
49+
esptool.py "--port=${PORT}" write_flash --flash_mode dio --flash_size detect 0x00000 "${FIRMWARE_NAME}"
50+
esptool.py "--port=${PORT}" write_flash --flash_mode dio --flash_size detect "${FS_ADDRESS}" "${FILESYSTEM_NAME}"
5151

5252
tput bel
5353

0 commit comments

Comments
 (0)