Skip to content

Commit

Permalink
esp32/boards/GENERIC_OTA: Enable silent checks to reduce firmware size.
Browse files Browse the repository at this point in the history
Enabling mDNS put this firmware over the limit of the OTA partition size,
so tweak the compiler settings to reduce the firmware size.

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Jul 11, 2023
1 parent 1f35576 commit 2c67671
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ports/esp32/boards/GENERIC_OTA/sdkconfig.board
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-ota.csv"

# Reduce firmware size to fit in the OTA partition.
CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y

0 comments on commit 2c67671

Please sign in to comment.