From 8c8ec45433ba624b1b4bf50c228c0fb60fd71581 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 2 Apr 2025 10:37:01 -0700 Subject: [PATCH] Force inline critical_section_{enter,exit} from SDK These are used by USB host on core 1 and must be in RAM to work. The softer `inline` keyword allows the compiler to ignore it and put the function in flash instead. Core 1 will crash then. --- .gitmodules | 3 ++- ports/raspberrypi/sdk | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 2c96c3dec5f70..c60def69722e3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -172,7 +172,8 @@ url = https://github.com/adafruit/Adafruit_CircuitPython_SimpleMath [submodule "ports/raspberrypi/sdk"] path = ports/raspberrypi/sdk - url = https://github.com/raspberrypi/pico-sdk.git + url = https://github.com/adafruit/pico-sdk.git + branch = force_inline_critical_section [submodule "data/nvm.toml"] path = data/nvm.toml url = https://github.com/adafruit/nvm.toml.git diff --git a/ports/raspberrypi/sdk b/ports/raspberrypi/sdk index bddd20f928ce7..96b363a15598d 160000 --- a/ports/raspberrypi/sdk +++ b/ports/raspberrypi/sdk @@ -1 +1 @@ -Subproject commit bddd20f928ce76142793bef434d4f75f4af6e433 +Subproject commit 96b363a15598d0a17a77542ba63150b7d3fa5fd5