mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-12-02 03:03:04 +05:00
fix: use ROM libc during ESP32-C6 flash initialization
Link the C6 ROM routines in the final Arduino image and let ESP-IDF supply its own linker scripts during the SDK build. Use the 4 MB DevKitM profile for C6 and honor each board's default flash mode.
This commit is contained in:
1 parent
0977b50208
commit
2006e6a7c2
2 files changed
+7
-2
No files matched your search
+4
-2
@@ -50,7 +50,7 @@ upload_speed = 921600
|
||||
monitor_speed = 115200
|
||||
;monitor_filters = direct
|
||||
monitor_filters = esp32_exception_decoder
|
||||
board_build.flash_mode = dio
|
||||
;board_build.flash_mode = dio
|
||||
board_build.filesystem = littlefs
|
||||
check_tool = ;pvs-studio
|
||||
check_flags = ;pvs-studio: --analysis-mode=4 --exclude-path=./.pio/libdeps
|
||||
@@ -280,7 +280,7 @@ custom_board_flags = -D DEFAULT_OT_IN_GPIO=21
|
||||
[env:esp32_c6]
|
||||
custom_title = ESP32 C6
|
||||
extends = esp32_defaults
|
||||
board = esp32-c6-devkitc-1
|
||||
board = esp32-c6-devkitm-1
|
||||
lib_deps = ${esp32_defaults.lib_deps}
|
||||
${esp32_defaults.nimble_lib}
|
||||
build_unflags = ${esp32_defaults.build_unflags}
|
||||
@@ -289,6 +289,8 @@ build_unflags = ${esp32_defaults.build_unflags}
|
||||
-Os
|
||||
custom_link_flags = -msave-restore
|
||||
-Oz
|
||||
; https://github.com/pioarduino/platform-espressif32/issues/586
|
||||
-Tesp32c6.rom.libc-suboptimal_for_misaligned_mem.ld
|
||||
build_flags = ${esp32_defaults.build_flags}
|
||||
-msave-restore
|
||||
-fno-exceptions
|
||||
|
||||
Reference in new issue
Block a user