Arduino-cli doesn't ack esp32 partition size but IDE does

Using the 04/03/2023 nightly I have 2 problems, one is with the IDE and the other is with the CLI.

IDE issue:
when I try copy-all from the console I don't get anything in my clipboard to paste. Using Kubuntu 20.04. I can double click one line and use Ctl-c and that'll copy a line.

CLI issue:
With the IDE I can compile an esp32 project using the no_ota memory partition configuration and it recognizes the program space set in no_ota.csv but not when I build using the arduino-cli as shown below. NOTE: I've tried huge_app and it builds in the IDE but doesn't on the CLI):

~/Projects/Arduin
o/arduino-ide_nightly-20230403_Linux_64bit/resources/app/node_modules/arduino-ide-extension/build/arduino
-cli compile --fqbn esp32:esp32:esp32 agoodWatch.ino --build-property build.partitions=no_ota,upload.maxi
mum_size=2097152

output shows:

Sketch uses 1507625 bytes (115%) of program storage space. Maximum is 1310720 bytes.
Global variables use 97680 bytes (29%) of dynamic memory, leaving 230000 bytes for local variables. Maximum is 327680 bytes.
Error during build: text section exceeds available space in board

For the CLI issue, take a look at the following. `build.property` correct parameter name

For the copy all issue, try clicking any where inside the console window. Press Ctrl-A to select all. Press Ctrl-C to copy.

1 Like

I've seen the compiler output referencing the settings I've tried for partitions like:

And I'd found a forum where they were also having program size issues and the upload.maxiumum_size option was added but it's not changing when I implement it...

I get the size from the app0 entry of the appropriate partition file( no_ota.csv ).
cat ~/.arduino15/packages/esp32/hardware/esp32/2.0.7/tools/partitions/no_ota.csv | grep app0 | cut -f5 -d',' | xargs printf "%d" | cut -f1 -d'('

Please note this from the other topic customcontroller linked to:

If you actually need to set custom property values, and you have taken the time to fully understand the platform configuration, then the --build-property flag is an appropriate tool. But in cases where you only want to set a custom board option, it is not the appropriate tool and using it is likely to cause you unnecessary headaches sooner or later.

the build flags can't be chained as I did with the "," so I used another --build-property entry for the maximum_size setting. It looks like items can't be chained together and multiple --build-property entries are required.

arduino-cli compile --verbose --fqbn esp32:esp32:esp32 agoodWatch.ino --build-property build.partitions=no_ota --build-property upload.maximum_size=2097152 

Was that an effort to get me to use "PartitionScheme=no_ota" instead? The headache started when I'd thought options could be chained by comma's and this states multiple calls are used for multiple build-properties. compile - Arduino CLI

Use the --board-options flag as explained in the thread customcontroller linked:

arduino-cli compile --fqbn esp32:esp32:esp32 --board-options PartitionScheme=no_ota
1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.