Skip to content

Commit

Permalink
Introduced a warning during the verification of MCU maximum RAM usage…
Browse files Browse the repository at this point in the history
… // Resolve #4791
  • Loading branch information
ivankravets committed Nov 28, 2023
1 parent 961ab6b commit b238c55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/platformio/platformio-core/issues/4791>`_)
* Drastically enhanced the speed of project building when operating in verbose mode (`issue #4783 <https://github.com/platformio/platformio-core/issues/4783>`_)
* Resolved an issue where the ``COMPILATIONDB_INCLUDE_TOOLCHAIN`` setting was not correctly applying to private libraries (`issue #4762 <https://github.com/platformio/platformio-core/issues/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 <https://github.com/platformio/platformio-core/issues/4777>`_)
* Resolved an issue with incorrect handling of the ``check_src_filters`` option when used in multiple environments (`issue #4788 <https://github.com/platformio/platformio-core/issues/4788>`_)


6.1.11 (2023-08-31)
~~~~~~~~~~~~~~~~~~~

Expand Down
11 changes: 5 additions & 6 deletions platformio/builder/tools/pioupload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit b238c55

Please sign in to comment.