diff options
| author | Damien George <damien@micropython.org> | 2021-04-27 23:52:40 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-04-27 23:52:40 +1000 |
| commit | 43a8c8178e0b5e2460edde0fdf436509a7f28764 (patch) | |
| tree | 3bc32b873f12512c46c10cdabe744e2d22513fb5 | |
| parent | d4b706c4d01377d42855ff1544ced77536f69caf (diff) | |
bare-arm: Switch to use MICROPY_ERROR_REPORTING_NONE to reduce size.
Reduces size of this port by about 3300 bytes, and demonstrates how to use
this feature.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/bare-arm/Makefile | 2 | ||||
| -rw-r--r-- | ports/bare-arm/README.md | 2 | ||||
| -rw-r--r-- | ports/bare-arm/mpconfigport.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ports/bare-arm/Makefile b/ports/bare-arm/Makefile index 455a9dc5a..1a21eb56a 100644 --- a/ports/bare-arm/Makefile +++ b/ports/bare-arm/Makefile @@ -5,7 +5,7 @@ include ../../py/mkenv.mk include $(TOP)/py/py.mk # Set makefile-level MicroPython feature configurations. -MICROPY_ROM_TEXT_COMPRESSION ?= 1 +MICROPY_ROM_TEXT_COMPRESSION ?= 0 # Define toolchain and other tools. CROSS_COMPILE ?= arm-none-eabi- diff --git a/ports/bare-arm/README.md b/ports/bare-arm/README.md index 496ee9c75..dfa5534d5 100644 --- a/ports/bare-arm/README.md +++ b/ports/bare-arm/README.md @@ -18,4 +18,4 @@ compiled and executed when the firmware starts. They produce output on the system's stdout. The size of the firmware (the machine code that is programmed to the -microcontroller's flash/ROM) is currently around 61200 bytes. +microcontroller's flash/ROM) is currently around 57900 bytes. diff --git a/ports/bare-arm/mpconfigport.h b/ports/bare-arm/mpconfigport.h index 41b6ee71a..3bebc3159 100644 --- a/ports/bare-arm/mpconfigport.h +++ b/ports/bare-arm/mpconfigport.h @@ -37,7 +37,7 @@ // Python internal features #define MICROPY_ENABLE_EXTERNAL_IMPORT (0) -#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE) +#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_NONE) #define MICROPY_CPYTHON_COMPAT (0) #define MICROPY_MODULE_GETATTR (0) #define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (0) |
