Hello guys, I migrated a project from arduino into Platformio Core, using arduino as a dependency following the docs from the repository, everything looks to be okay but for some reason, the compilation process tells me I am using more space than available in the flash, I already configured the board with the specs I need, but doesnt look to take actual effect on the flash size.
The purpose of migrating from arduino is the ability to use the PSRAM with malloc(), because arduino complained about the ram being overflown.
So my requirements are 4mgs of RAM and 16mgs of flash, so I used the ODROID json file with this platformio.ini definition:
[env]
platform = espressif32
framework = arduino, espidf
build_flags =
-D CONFIG_BLINK_GPIO=2
monitor_speed = 115200
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#idf-release/v4.0
[env:odroid_esp32]
board = odroid_esp32
lib_extra_dirs = ~/Documents/Arduino/libraries
lib_deps = gypsyrobot/CuteBuzzerSounds@^1.0.0
After compilation I get this message that doesnt look to be using the flash size:
Linking .pio/build/odroid_esp32/firmware.elf
Retrieving maximum program size .pio/build/odroid_esp32/firmware.elf
Building .pio/build/odroid_esp32/firmware.bin
Checking size .pio/build/odroid_esp32/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [==== ] 37.6% (used 123260 bytes from 327680 bytes)
Flash: [==========] 119.3% (used 1251251 bytes from 1048576Error: The program size (1251251 bytes) is greater than maximum allowed (1048576 bytes)
*** [checkprogsize] Explicit exit, status 1
bytes)
esptool.py v3.0
============================================================ [FAILED] Took 119.64 seconds ==================================================