Files
Martin Jäger 583924a9b9 Fix corrupted %f printf because of disabled heap
newlib requires malloc if printf is used with %f. Since PR 28486, the heap
space in RAM is only reserved if explicitly used by the application
(independent of the value of CONFIG_HEAP_MEM_POOL_SIZE) in order to free
some stack memory. As printf calls malloc internally, this commit forces
Zephyr to build with heap support enabled.
2020-11-18 21:05:05 +01:00

39 lines
753 B
Plaintext

# Main application configuration (overrides board-specific settings)
# only very small heap necessary for malloc in printf statements with %f
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_CPLUSPLUS=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_BUILD_OUTPUT_BIN=y
CONFIG_WATCHDOG=y
CONFIG_WDT_DISABLE_AT_BOOT=y
CONFIG_REBOOT=y
CONFIG_HWINFO=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_I2C=y
CONFIG_CONSOLE_SUBSYS=y
CONFIG_CONSOLE_GETCHAR=y
# direct printf calls to console
CONFIG_STDOUT_CONSOLE=y
# use minimal log by default to save memory for STM32F0 with little RAM
CONFIG_LOG=y
CONFIG_LOG_MINIMAL=y
# ThingSet protocol interface at UART serial
CONFIG_THINGSET_SERIAL=y
# I2C OLED display in UEXT connector
#CONFIG_EXT_OLED_DISPLAY=y