esp-idf v4.4.1 oddity
Posted: Tue May 17, 2022 2:58 pm
Hi,
Based on a comment from @bulletmark I tried updating my dev environment.
I've checked out micropython latest, and did the following to get a matching ESP-IDF installation:
I have a custom board:
The firmware resulting from this does not allow me to open a socket.
It results in red text (assuming this is from the C-stack):
E (20370) esp.emac: no mem for receive buffer
E (20440) esp.emac: no mem for receive buffer
E (20700) esp.emac: no mem for receive buffer
E (20700) esp.emac: no mem for receive buffer
E (20700) esp.emac: no mem for receive buffer
E (20790) esp.emac: no mem for receive buffer
The exact same procedure works for v4.2.3
I tried google, but found nobody with similar issues.
So, I guess I'm doing something odd here
Now I'm not in desperate need to update to v4.4.1 but I surely would like to get a better grip on Micropython development...
does anyone have a clue whether I might have found a bug, or whether I am doing something incorrectly
Based on a comment from @bulletmark I tried updating my dev environment.
I've checked out micropython latest, and did the following to get a matching ESP-IDF installation:
Code: Select all
source micropython/tools/ci.sh
ci_esp32_setup_helper v4.4.1
source esp-idf/export.sh
make -C micropython/mpy-cross
make -C micropython/ports/esp32 clean all
Code: Select all
# 8 MB flash
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=
CONFIG_ESPTOOLPY_FLASHSIZE="8MB"
# Fast flash
CONFIG_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_ESP32_REV_MIN_1=y
# OTA
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-8MiB-ota.csv"
# BLE
CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1
# Network name
CONFIG_LWIP_LOCAL_HOSTNAME="Custom - SC"
It results in red text (assuming this is from the C-stack):
E (20370) esp.emac: no mem for receive buffer
E (20440) esp.emac: no mem for receive buffer
E (20700) esp.emac: no mem for receive buffer
E (20700) esp.emac: no mem for receive buffer
E (20700) esp.emac: no mem for receive buffer
E (20790) esp.emac: no mem for receive buffer
The exact same procedure works for v4.2.3
I tried google, but found nobody with similar issues.
So, I guess I'm doing something odd here
Now I'm not in desperate need to update to v4.4.1 but I surely would like to get a better grip on Micropython development...
does anyone have a clue whether I might have found a bug, or whether I am doing something incorrectly