Skip to content

Commit 4ee7710

Browse files
authored
Merge pull request #20 from picoruby/pico-sdk-2.2.0
Upgrade pico-sdk from 2.1.1 to 2.2.0
2 parents e000e85 + f93a070 commit 4ee7710

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ elseif(PICO_BOARD STREQUAL "pico2" OR PICO_BOARD STREQUAL "pico2_w")
8080
target_compile_definitions(${PROJECT_NAME} PRIVATE FLASH_TARGET_OFFSET=0x00340000)
8181
endif()
8282

83+
# Fix for pico-sdk 2.2.0: Assume core1 is safe for flash operations
84+
# Core1 is used for PSG audio processing but doesn't access flash during BTStack operations
85+
add_compile_definitions(PICO_FLASH_ASSUME_CORE1_SAFE=1)
86+
8387
set(PICORBC ${CMAKE_SOURCE_DIR}/lib/picoruby/bin/picorbc)
8488

8589
add_custom_target(mrbdir ALL
@@ -192,8 +196,8 @@ target_include_directories(${PROJECT_NAME} PRIVATE
192196
${CMAKE_SOURCE_DIR}/lib/picoruby/mrbgems/picoruby-filesystem-fat/lib/ff14b/source
193197
${CMAKE_SOURCE_DIR}/lib/picoruby/build/${MRUBY_CONFIG}/mrbgems
194198
${CMAKE_SOURCE_DIR}/lib/picoruby/mrbgems/picoruby-mbedtls/include
195-
${CMAKE_SOURCE_DIR}/lib/picoruby/mrbgems/picoruby-mbedtls/mbedtls/include
196-
${CMAKE_SOURCE_DIR}/lib/picoruby/mrbgems/picoruby-mbedtls/mbedtls/library
199+
${CMAKE_SOURCE_DIR}/lib/picoruby/mrbgems/picoruby-mbedtls/lib/mbedtls/include
200+
${CMAKE_SOURCE_DIR}/lib/picoruby/mrbgems/picoruby-mbedtls/lib/mbedtls/library
197201
${CMAKE_SOURCE_DIR}/lib/picoruby/mrbgems/picoruby-net/include
198202
)
199203

Rakefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ unless ENV.include? "PICO_EXTRAS_PATH"
77
ENV["PICO_EXTRAS_PATH"] = "#{File.dirname(__FILE__)}/lib/pico-extras"
88
end
99

10-
PICO_SDK_TAG = "2.1.1"
11-
if PICO_SDK_TAG == "2.1.1"
12-
PICO_EXTRAS_TAG = "sdk-2.1.0" # workaround. 2.1.1 and 2.1.0 are the same
13-
else
14-
PICO_EXTRAS_TAG = "sdk-#{PICO_SDK_TAG}"
15-
end
10+
PICO_SDK_TAG = "2.2.0"
11+
PICO_EXTRAS_TAG = "sdk-#{PICO_SDK_TAG}"
1612

1713
def mruby_config(vm, board)
1814
name = (vm == 'mruby' ? 'microruby-' : '')

lib/pico-sdk

Submodule pico-sdk updated 385 files

lib/picoruby

Submodule picoruby updated 57 files

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#if !defined(HEAP_SIZE)
1515
#if defined(PICO_RP2040)
1616
#if defined(USE_WIFI)
17-
#define HEAP_SIZE (1024 * 150)
17+
#define HEAP_SIZE (1024 * 140)
1818
#else
1919
#define HEAP_SIZE (1024 * 194)
2020
#endif

0 commit comments

Comments
 (0)