I’ve a AZ-Touch MOD Display connected to AZ-Delivery az-delivery-devkit-v4 ESP32. Running a more less simple config with the display enabled works fine. Same for a config with only BLE Xiaomi tracker enabled.
If I configure both Display and BLE as shown below I run into Wifi connection issue, means it will not start wifi. I’ve seen message
[16:13:07][V][esp-idf:000]: E (2583) wifi:
[16:13:07][V][esp-idf:000]: Expected to init 16 rx buffer, actual is 8
[16:14:06][V][esp-idf:000]: W (62426) wifi:
[16:14:06][V][esp-idf:000]: wifi_nvs_load: no mem
in log and also found some hints about lowering buffer as this consumes (too much) memory but no idea how to lower value in esphome?
This is the config, of course without wifi credentials:
Thanks for your reply. The Image has only 9kb and the error occurs also without the image.
Do you mean cleaning the build files with your suggestion “make clean”? I’ve done this, without success.
Also selecting a legacy esp32 board instead of (correct) az-delivery-devkit-v4 makes no difference.
I’ve tried esp-idf as well, unfortunately leads directly to next error:
Processing esp-03 (board: az-delivery-devkit-v4; framework: espidf; platform: platformio/espressif32 @ 3.5.0)
--------------------------------------------------------------------------------
Tool Manager: Installing platformio/toolchain-esp32ulp @ ~1.22851.0
Error: Could not find the package with 'platformio/toolchain-esp32ulp @ ~1.22851.0' requirements for your system 'linux_aarch64'
I’ve played around with settings for board, version and platform but without success.
I assume the issue itself is related to BLE Client as stated here “The BLE software stack on the ESP32 consumes a significant amount of RAM on the device. As such, you may experience frequent crashes due to out-of-memory if you enable many other components.”
I did not really assume that only a display a some ble would use such amount of memory. Bad luck, I wanted to use the ESP32 to gather plant data and having a touchdisplay all in one.
Sometimes dodgy sellers have products with less ram than the device should have. I bought some so called esp8266 d1 Mini Pros with less than the spec for a D1 Mini Pro, and it failed with being set up in esphome.
Also I have a esp32 with an ssd1326 doing BLE with two different Xiaomi devices, and both BLE and the display work fine. It has less RAM than your boards.
I am just getting this now after enabling BT proxy on an ESP32-WROOM-32 board and ili9341 2.8" screen:
[17:27:41][D][esp32_ble_tracker:264]: Starting scan...
[17:27:41][C][wifi:037]: Setting up WiFi...
[17:27:41][D][esp-idf:000]: E (2539) wifi:
[17:27:41][D][esp-idf:000]: Expected to init 16 rx buffer, actual is 6
[17:27:41][D][esp-idf:000]:
[17:27:41]
[17:27:41][E][WiFiGeneric.cpp:137] wifiLowLevelInit(): esp_wifi_init 257
[17:27:41][W][wifi_esp32:057]: Setting WiFi mode failed!
[17:27:41][D][wifi:384]: Starting scan...
[17:27:41][E][WiFiGeneric.cpp:137] wifiLowLevelInit(): esp_wifi_init 257
[17:27:41][W][wifi_esp32:057]: Setting WiFi mode failed!
I have no images only about 4 lines of text.
Both BT proxy and the screen work ok individually but not together.
I assume low memory on the board i.e this:
What boards are people using that works with both BT/screen without issues?
Note that’s PSRAM, not SRAM on the D32. They are not the same, and PSRAM needs to be addressed separately. Not sure if PSRAM is used atm by any ESPHome component, maybe some displays or the camera can use it.
SRAM is still 320kb on models equipped with PSRAM too.
I think with SRAM 512 only ESP32-S3. or ESP32-C6. Good old ESP32 has only 320 of SRAM, regardless of who packages it.
PSRAM is different and can be different size on various boards.
Thanks for clarifying, was wondering if I was doing something wrong but it should work fine alongside temp/humidity, lux, motion sensors or is it too much for it too?
Looks like for now an M5stack ATOM lite will have to do until the ESP64 comes out
Tried it with this ESP32 which is supposed to have 512kb memory and tried it with board: az-delivery-devkit-v4 because board: esp32dev seems to default to 320kb but still the same issue.
Maybe I need to use another board in the config?
Any way I can find out the true memory size of the board?
I ordered one of these as they are down as 532kb on the esphome github