feature: Example binary improvements Closes ESF-67, ESF-68, and ESF-69 See merge request espressif/esp-serial-flasher!73
@@ -11,5 +11,5 @@ project(hello_world)
# This generates a binary file from the elf, as the RAM build doesn't do that automatically
add_custom_command(TARGET ${PROJECT_NAME}.elf
POST_BUILD
- COMMAND esptool.py elf2image --output app.bin ${PROJECT_NAME}.elf
+ COMMAND esptool.py --chip ${IDF_TARGET} elf2image --output app.bin ${PROJECT_NAME}.elf
)
@@ -2,6 +2,7 @@
# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration
#
CONFIG_APP_BUILD_TYPE_ELF_RAM=y
+CONFIG_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_APP_NO_BLOBS=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE=y
CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y