jimwhitelaw / ELMulator

Arduino ODBII ELM327 Emulator - Allows Arduino to act as an OBD2 ELM327 device and respond to PID requests
MIT License
14 stars 1 forks source link

Example not compiling, size error #2

Open papillon2k opened 2 months ago

papillon2k commented 2 months ago

Hi, I am trying to test one of the examples of the library (the simple one), in Arduino IDE 2.3.2, but it fails with this message:

Sketch uses 1655137 bytes (126%) of program storage space. Maximum is 1310720 bytes. Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it. Global variables use 58124 bytes (17%) of dynamic memory, leaving 269556 bytes for local variables. Maximum is 327680 bytes. text section exceeds available space in board

Compilation error: text section exceeds available space in board

The board I am using is a ESP32 DEVKIT V4 (in the IDE, i have chosen "ESP32 Dev Module"). I also tried with another board I have here, an D1 Mini ESP32, with same result.

Is this normal?

(By the way, I had to rename the folder that contains the example to have the same name as the .ino file, or it would not show on the File > examples menu)

Thanks in advance

Bakar002 commented 3 weeks ago

Hello the basic solution for this problem is just but a little setting like go to Arduino IDE SELECT YOUR BOARD IN THE ABOVE YOU HAVE AN OPTION OF TOOLS JUST GO THERE THEN YOU SEE A OPTION LIKE PARTITION SCHEME AND THEN SET IT TO Minimal SPIFFS AND THEN ADD YOUR SKETCH AND TRY TO UPLOAD IT YOU WILL SURE BE ABLE TO UPLOAD IT NICELY

jimwhitelaw commented 3 weeks ago

In my case, I'm using PlatformIO and I specify the partition scheme using this _custompartitions.csv file:

# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x9000,  0x5000,
otadata,  data, ota,     0xe000,  0x2000,
app0,     app,  ota_0,   0x10000, 0x1D0000,
app1,     app,  ota_1,   0x1E0000,0x1D0000,
spiffs,   data, spiffs,  0x3B0000,0x40000,
coredump, data, coredump,0x3F0000,0x10000,