Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit b719e70

Browse files
committed
4MB Flash boards are deprecated
1 parent 91f1e0e commit b719e70

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

esp32/tools/size_check.sh

+4-13
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ if [ $4 -eq 1 ]; then
1616
else
1717
IMG_MAX_SIZE_8MB=2027520
1818
fi
19-
IMG_MAX_SIZE_4MB=1761280
19+
# 4MB boards are deprecated
20+
# IMG_MAX_SIZE_4MB=1761280
21+
2022
OS="$(uname)"
2123

2224
#Script Has to be called from esp32 Dir
@@ -56,18 +58,7 @@ fi
5658
total_size=$((${size_app} + ${size_boot}))
5759

5860

59-
IMG_MAX_SIZE=${IMG_MAX_SIZE_4MB}
60-
61-
if [ "${BOARD}" = "LOPY4" -o "${BOARD}" = "GPY" -o "${BOARD}" = "FIPY" -o "${BOARD}" = "LOPY" ] ; then
62-
# LOPY image is for L01 (not Lopy1), which has a 8MB chip
63-
IMG_MAX_SIZE=${IMG_MAX_SIZE_8MB}
64-
elif [ "${BOARD}" = "WIPY" -a "${VARIANT}" = "PYGATE" ] ; then
65-
# WiPy2.0 has a 4MB chip
66-
# WiPy3.0 has a 8MB chip
67-
# they are both supported by BOARD=WIPY
68-
# on the Pygate we support only the WiPy3.0, so for this combination we allow the 8MB limit
69-
IMG_MAX_SIZE=${IMG_MAX_SIZE_8MB}
70-
fi
61+
IMG_MAX_SIZE=${IMG_MAX_SIZE_8MB}
7162

7263
if [ ${total_size} -gt ${IMG_MAX_SIZE} ] ; then
7364
echo "${total_size} bytes => Firmware image size is NOT ok. It exceeds the available space ${IMG_MAX_SIZE} by $[ $total_size - $IMG_MAX_SIZE ]!" >&2

0 commit comments

Comments
 (0)