-
Couldn't load subscription status.
- Fork 186
Update ESP32P4 defconfig with Wi-Fi and LWIP performance settings #323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added configuration options for Wi-Fi and LWIP buffers.
The thread you've mentioned is specific to SP32-P4-Function-EV-Board product that uses ESP32-C6 as a slave Wi-Fi and BLE co-processor However, ESP32-C5 is also in use by ESP32-P4 boards to provide Wi-Fi and BLE features
Limited RAM of ESP32-C5 is known to cause issues. One known example is XiaoZhi Voice Assistant https://github.com/78/xiaozhi-esp32 The buffers has to be reduced as follows to fix the boot loop My suggestion is to revert this PR until the Arduino Core will distinguish ESP32-C5 slave from ESP32-C6 one and adjust Wi-Fi buffers correspondingly ! |
|
@lyusupov unless we can control those at runtime, we will not have a way to change them based on the slave chip, so we either go with the lower values to cover both chips, or we keep what is default |
This ESP-HOSTED commit that was referenced in this PR (see above) contains this
This commit contains the following values for ESP32-C5 slave :
For ESP32-C61 slave:
Note Regardless of what particular approach will be chosen - it makes sense to revert this commit 7685397 before it will break next Release of the Arduino Core. |
|
@Jason2866 any comments? |
|
@me-no-dev Fine with changes which works for all slave MCUs |
|
@lyusupov @Jason2866 here it is: #324 |
Current Arduino Core and Libraries still use ESP-HOSTED version 2.0.12 which is 3+ months old
This is location of 2.0.12 in the Espressif registry https://components.espressif.com/components/espressif/esp_hosted/versions/2.0.12/readme?language=en When the Arduino Core 3.3.2 for ESP32-P4 with ESP-HOSTED component 2.0.12 successfully boots up on ESP32-C5 slave, it produces the log You can see there what particular Wi-Fi buffers were successfully allocated by ESP-HOSTED 2.0.12 on the C5 slave
From my experience with XiaoZhi assistant, when the C5 SLAVE allocates less memory than P4 expects to get - ASSERT() on the P4 HOST will happen followed by executing a panic() procedure.... |





enhance wifi performance by using recommended settings from espressif/esp-hosted-mcu#109 (comment)
@me-no-dev