Skip to content

Commit

Permalink
Throw FATAL_ERROR when using RP2040
Browse files Browse the repository at this point in the history
RP2040 does not support partitions, so throw fatal_error at the CMake stage
  • Loading branch information
will-v-pi committed Nov 19, 2024
1 parent 508071f commit ab77cf9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rp2_common/pico_cyw43_driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ if (EXISTS ${PICO_CYW43_DRIVER_PATH}/${CYW43_DRIVER_TEST_FILE})
pico_promote_common_scope_vars()

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

Expand Down

0 comments on commit ab77cf9

Please sign in to comment.