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>
This commit is contained in:
Damien George 2021-04-27 23:52:40 +10:00
parent d4b706c4d0
commit 43a8c8178e
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ include ../../py/mkenv.mk
include $(TOP)/py/py.mk include $(TOP)/py/py.mk
# Set makefile-level MicroPython feature configurations. # Set makefile-level MicroPython feature configurations.
MICROPY_ROM_TEXT_COMPRESSION ?= 1 MICROPY_ROM_TEXT_COMPRESSION ?= 0
# Define toolchain and other tools. # Define toolchain and other tools.
CROSS_COMPILE ?= arm-none-eabi- CROSS_COMPILE ?= arm-none-eabi-

View File

@ -18,4 +18,4 @@ compiled and executed when the firmware starts. They produce output on the
system's stdout. system's stdout.
The size of the firmware (the machine code that is programmed to the 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.

View File

@ -37,7 +37,7 @@
// Python internal features // Python internal features
#define MICROPY_ENABLE_EXTERNAL_IMPORT (0) #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_CPYTHON_COMPAT (0)
#define MICROPY_MODULE_GETATTR (0) #define MICROPY_MODULE_GETATTR (0)
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (0) #define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (0)