diff --git a/HISTORY.rst b/HISTORY.rst index 579c1e7074..b35a87441e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -20,12 +20,12 @@ test-driven methodologies, and modern toolchains for unrivaled success. 6.1.12 (2023-??-??) ~~~~~~~~~~~~~~~~~~~ +* Introduced a warning during the verification of MCU maximum RAM usage, signaling when the allocated RAM surpasses 100% (`issue #4791 `_) * Drastically enhanced the speed of project building when operating in verbose mode (`issue #4783 `_) * Resolved an issue where the ``COMPILATIONDB_INCLUDE_TOOLCHAIN`` setting was not correctly applying to private libraries (`issue #4762 `_) * Resolved an issue where ``get_systype()`` inaccurately returned the architecture when executed within a Docker container on a 64-bit kernel with a 32-bit userspace (`issue #4777 `_) * Resolved an issue with incorrect handling of the ``check_src_filters`` option when used in multiple environments (`issue #4788 `_) - 6.1.11 (2023-08-31) ~~~~~~~~~~~~~~~~~~~ diff --git a/platformio/builder/tools/pioupload.py b/platformio/builder/tools/pioupload.py index 77bf28d251..224d0b90f8 100644 --- a/platformio/builder/tools/pioupload.py +++ b/platformio/builder/tools/pioupload.py @@ -218,12 +218,11 @@ def _format_availale_bytes(value, total): if int(ARGUMENTS.get("PIOVERBOSE", 0)): print(output) - # raise error - # if data_max_size and data_size > data_max_size: - # sys.stderr.write( - # "Error: The data size (%d bytes) is greater " - # "than maximum allowed (%s bytes)\n" % (data_size, data_max_size)) - # env.Exit(1) + if data_max_size and data_size > data_max_size: + sys.stderr.write( + "Warning! The data size (%d bytes) is greater " + "than maximum allowed (%s bytes)\n" % (data_size, data_max_size) + ) if program_size > program_max_size: sys.stderr.write( "Error: The program size (%d bytes) is greater "