Merge pull request #3034 from cesanta/picosdk

Fix Pico-SDK aggressive optimization breaking OTA
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2025-02-06 10:31:09 -03:00
commit 34f512d244
6 files changed
+20 -2

No files matched your search

@@ -27,6 +27,9 @@ pico_add_extra_outputs(firmware) # create map/bin/hex file etc.
pico_enable_stdio_usb(firmware 1) # Route stdio pico_enable_stdio_usb(firmware 1) # Route stdio
pico_enable_stdio_uart(firmware 0) # to USB pico_enable_stdio_uart(firmware 0) # to USB
# Prevent extreme optimization from breaking OTA
target_compile_options(firmware PRIVATE -fno-tree-loop-distribute-patterns)
# Mongoose build flags in mongoose_config.h # Mongoose build flags in mongoose_config.h
# Example build options # Example build options
@@ -15,8 +15,11 @@ build/firmware.uf2:
cd build && cmake -DPICO_BOARD="pico2_w" -G "Unix Makefiles" .. && make cd build && cmake -DPICO_BOARD="pico2_w" -G "Unix Makefiles" .. && make
pico-sdk: pico-sdk:
git clone --depth 1 -b 2.1.0 https://github.com/raspberrypi/pico-sdk $@ #git clone --depth 1 -b 2.1.1 https://github.com/raspberrypi/pico-sdk $@
cd $@ && git submodule update --init #cd $@ && git submodule update --init
# Temporary fix until 2.1.1 is released, see #3027
git clone -b develop https://github.com/raspberrypi/pico-sdk $@
cd $@ && git reset --hard --quiet b51fa1b && git submodule update --quiet --init
FreeRTOS-Kernel: # FreeRTOS sources FreeRTOS-Kernel: # FreeRTOS sources
git clone --depth 1 -b main https://github.com/raspberrypi/FreeRTOS-Kernel $@ git clone --depth 1 -b main https://github.com/raspberrypi/FreeRTOS-Kernel $@
@@ -17,3 +17,6 @@ pico_add_extra_outputs(firmware) # create map/bin/hex file etc.
pico_enable_stdio_usb(firmware 1) # Route stdio pico_enable_stdio_usb(firmware 1) # Route stdio
pico_enable_stdio_uart(firmware 0) # to USB pico_enable_stdio_uart(firmware 0) # to USB
# Prevent extreme optimization from breaking OTA
target_compile_options(firmware PRIVATE -fno-tree-loop-distribute-patterns)
@@ -30,3 +30,6 @@ add_definitions(-DHTTP_URL="http://0.0.0.0/")
# Extra build flags (enable if needed) # Extra build flags (enable if needed)
add_definitions(-DDUAL_CONFIG=0) add_definitions(-DDUAL_CONFIG=0)
# Prevent extreme optimization from breaking OTA
target_compile_options(firmware PRIVATE -fno-tree-loop-distribute-patterns)
@@ -21,6 +21,9 @@ pico_add_extra_outputs(firmware) # create map/bin/hex file etc.
pico_enable_stdio_usb(firmware 0) # Route stdio pico_enable_stdio_usb(firmware 0) # Route stdio
pico_enable_stdio_uart(firmware 1) # to the UART pico_enable_stdio_uart(firmware 1) # to the UART
# Prevent extreme optimization from breaking OTA
target_compile_options(firmware PRIVATE -fno-tree-loop-distribute-patterns)
# Mongoose build flags in mongoose_config.h # Mongoose build flags in mongoose_config.h
# Example build options # Example build options
@@ -27,6 +27,9 @@ pico_add_extra_outputs(firmware) # create map/bin/hex file etc.
pico_enable_stdio_usb(firmware 1) # Route stdio pico_enable_stdio_usb(firmware 1) # Route stdio
pico_enable_stdio_uart(firmware 0) # to USB pico_enable_stdio_uart(firmware 0) # to USB
# Prevent extreme optimization from breaking OTA
target_compile_options(firmware PRIVATE -fno-tree-loop-distribute-patterns)
# Mongoose build flags in mongoose_config.h # Mongoose build flags in mongoose_config.h
# Example build options # Example build options