Build error when setting upload.maximum_size
or upload.maximum_data_size
properties in hexadecimal format
#2517
Labels
priority: low
Resolution is a low priority
type: imperfection
Perceived defect in any part of project
Describe the problem
When the boards.txt definition contains either
{upload.maximum_size}
or{upload.maximum_data_size}
as hex values instead of decimal the build fails with error:To reproduce
Edit boards.txt entry to set
{upload.maximum_size}
or{upload.maximum_data_size}
to a hex value i.e.0x20000
instead of 131072Expected behavior
Hexadecimal property values when prefixed with
0x
should be parsed normally just like the{build.flash_offset}
property is.Arduino CLI version
nightly-20240131 Commit: 205a6a5 Date: 2024-01-31T01:27:13Z
Operating system
Windows
Operating system version
10.0.19045 Build 19045
Additional context
arduino-cli.exe is run from VSCode using Microsoft's Arduino extension:
vsciot-vscode.vscode-arduino
Issue checklist
The text was updated successfully, but these errors were encountered: