-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
Problem
Wigle file uploads fail with "SSL - Memory allocation failed" error on M5Stack Cardputer Adv.
Error Output
Wigle upload: file=260114_211403_wardriving.csv size=2027
Free heap: 59020
Largest free block: 31732
PSRAM size: 0
[ssl_client.cpp:36] _handle_error(): [start_ssl_client():303]: (-32512) SSL - Memory allocation failed
[NetworkClientSecure.cpp:159] connect(): start_ssl_client: connect failed: -32512
Connection failed!
Root Cause
The SSL handshake requires ~50KB of contiguous memory, but the heap is fragmented:
- Total free heap: ~59KB
- Largest contiguous block: ~31KB
The Cardputer Adv does not have PSRAM, so SSL cannot use external memory for its buffers.
Proposed Solution
Reduce SSL buffer sizes in the bruce_esp32-arduino-libs sdkconfig:
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=4096
CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=4096
This would reduce SSL memory requirements by ~24KB.
Metadata
Metadata
Assignees
Labels
No labels