We are using Olimex ESP32-EVB for my IoT application. The development environment is Arduino.
My application is collecting field sensors data over modbus and sending the same to cloud server through MQTT and logging same data on sd card.
We enabled WiFi/ethernet for above application, it was working fine without ram overflow error.
We wanted the sensors data over BLE as well, so we added BLE stack to my application.
With BLE following compilation error is coming.
c:/users/ademtek05-user/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: region `dram0_0_seg’ overflowed by 2472 bytes
From the above error, we understand that RAM is not sufficient.
We thought of disabling some functionality of the BLE stack to reduce RAM usage. So request you, please guide us how to reduce BLE stack functionalities.
Hi, thanks for posting here! Can you provide the full Arduino IDE debug message? For example:
"Sketch uses 519034 bytes (39%) of program storage space. Maximum is 1310720 bytes.
Global variables use 37592 bytes (12%) of dynamic memory, leaving 257320 bytes for local variables. Maximum is 294912 bytes."
Thanks again! Regards,