This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Description
After the last upgrade of esp-idf to master - c62ae777c262aca1ad7b70c953e4c9ddde5df764 the compilation of the micropython-esp32 faild with:
In file included from /home/vagrant/esp-idf/components/mbedtls/port/include/mbedtls/esp_config.h:30:0,
from /home/vagrant/esp-idf/components/mbedtls/include/mbedtls/platform.h:29,
from ../py/../extmod/modussl_mbedtls.c:39:
./sdkconfig.h:84:1: error: stray '##' in program
##define CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM 10
^
./sdkconfig.h:84:3: error: unknown type name 'define'
##define CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM 10
^
./sdkconfig.h:84:49: error: expected '=', ',', ';', 'asm' or 'attribute' before numeric constant
##define CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM 10
^
./sdkconfig.h:85:1: error: stray '##' in program
##define CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM 0
^
./sdkconfig.h:86:1: error: stray '##' in program
##define CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM 32
^
./sdkconfig.h:87:1: error: stray '##' in program
##define CONFIG_NUMBER_OF_MAC_ADDRESS_GENERATED_FROM_EFUSE 4
^
make: *** [build/py/../extmod/modussl_mbedtls.o] Error 1
To fix it I added in micropython-esp32/esp32/sdkconfig.h the following lines:
#define CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM 10
#define CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM 0
#define CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM 32
#define CONFIG_NUMBER_OF_MAC_ADDRESS_GENERATED_FROM_EFUSE 4
the compilation passed and seems that micropython is working.
Pls. check if somthing else is missing.
Regards