Replies: 1 comment 4 replies
-
|
Please use GitHub Flavored Markdown to format your posts. I have spend some to to repro this to confirm what your logs already show : Your logs show a classic coexistence memory squeeze: BLE + Wi‑Fi each need large internal IDF buffers, and C3 runs out of suitable memory depending on init order. So; what is using memory ?
if I pre-compile the modules to .mpy - then the same code does run on a ESP32-C3 - but still runs out of memory on a ESP32-C6 if I strip down the scanner to do only a BLE scan ( and avoid allocating any WiFi) - it works fine on a C6 as well. That is the reality of Micro Controllers - there are only limited resources. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Port, board and/or hardware
esp32
MicroPython version
MPY version : v1.27.0 on 2025-12-09
IDF version : v5.5.1
Machine : ESP32C3 module with ESP32C3
ble_wifi_mem_probe.py
ble_repl_bletime.py
import ble_wifi_mem_probe as pp.BLE_PROFILES["c3safe"]["debug"] = 2p.run("c3safe", 30, "ble_wifi_espnow", "sta_only", False, True)Reproduction
I trying to make Bluetooth REPL with ESP NOW functionality for https://espide.eu/
On ESP32 and ESP32S3 code works fine.
On ESP32C3 and ESP32C6 code crash with OSError('WiFi Out of Memory'.
Copy ble_wifi_mem_probe.py and ble_repl_bletime.py to ESP and run:
import ble_wifi_mem_probe as pp.BLE_PROFILES["c3safe"]["debug"] = 2p.run("c3safe", 30, "ble_wifi_espnow", "sta_only", False, True)Logs on ESP32 :
logs on ESP32C3 :
Expected behaviour
Program try to create BLE and WIfi interface and for 30s monitoring free heap memory...
Expected is running without errors.
Observed behaviour
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
Beta Was this translation helpful? Give feedback.
All reactions