Skip to content

Commit

Permalink
Enable release build and -Os optimization
Browse files Browse the repository at this point in the history
Without -Os and with debug build -Og is enabled. This resulted in
unstable firmware flash times (30 vs 40 seconds) that seem to depend
on the minute details of the generated code layout.
  • Loading branch information
photron committed Jul 1, 2024
1 parent d5ebd55 commit d1b8811
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions software/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ platform = platformio/espressif32@^6.7.0
framework = arduino

monitor_speed = 115200
build_type = debug
build_type = release

extra_scripts = pre:pio_hooks.py
post:merge_firmware_hook.py

board_build.partitions = default_16MB_coredump.csv

build_src_flags = -Wall
build_src_flags = -Os
-Wall
-Wextra
-Wshadow=local
-Werror=return-type
Expand Down

0 comments on commit d1b8811

Please sign in to comment.