Skip to content

Commit cf61a17

Browse files
committed
Throw FATAL_ERROR when using RP2040
RP2040 does not support partitions, so throw fatal_error at the CMake stage
1 parent b3f0071 commit cf61a17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rp2_common/pico_cyw43_driver/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ if (EXISTS ${PICO_CYW43_DRIVER_PATH}/${CYW43_DRIVER_TEST_FILE})
164164
pico_promote_common_scope_vars()
165165

166166
function(pico_use_partition_firmware TARGET)
167+
if (PICO_PLATFORM STREQUAL "rp2040")
168+
message(FATAL_ERROR "RP2040 does not support storing wi-fi firmware in partitions")
169+
endif()
167170
target_compile_definitions(${TARGET} PRIVATE CYW43_USE_PARTITION_FIRMWARE=1)
168171
pico_embed_pt_in_binary(${TARGET} ${PICO_CYW43_DRIVER_CURRENT_PATH}/wifi_pt.json)
169172

0 commit comments

Comments
 (0)