Skip to content

Commit ab77cf9

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

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
@@ -160,6 +160,9 @@ if (EXISTS ${PICO_CYW43_DRIVER_PATH}/${CYW43_DRIVER_TEST_FILE})
160160
pico_promote_common_scope_vars()
161161

162162
function(pico_use_partition_firmware TARGET)
163+
if (PICO_PLATFORM STREQUAL "rp2040")
164+
message(FATAL_ERROR "RP2040 does not support storing wi-fi firmware in partitions")
165+
endif()
163166
target_compile_definitions(${TARGET} PRIVATE CYW43_USE_PARTITION_FIRMWARE=1)
164167
pico_embed_pt_in_binary(${TARGET} ${PICO_CYW43_DRIVER_CURRENT_PATH}/wifi_pt.json)
165168

0 commit comments

Comments
 (0)