Skip to content

Commit

Permalink
Don't require memory banks if not using an upload method
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Oct 4, 2024
1 parent 3ffd182 commit f07c588
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/cmake/UploadMethodManager.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ if(NOT DEFINED MBED_UPLOAD_BASE_ADDR OR "${MBED_UPLOAD_BASE_ADDR}" STREQUAL "")
if(MBED_CONFIG_DEFINITIONS MATCHES "MBED_CONFIGURED_ROM_START=(0x[0-9a-zA-Z]+)")
set(MBED_UPLOAD_BASE_ADDR ${CMAKE_MATCH_1} CACHE STRING ${BASE_ADDR_DESCRIPTION})
else()
set(MBED_UPLOAD_BASE_ADDR "" CACHE STRING ${BASE_ADDR_DESCRIPTION})
message(FATAL_ERROR "Since no ROM banks have been defined, you need to set the MBED_UPLOAD_BASE_ADDR option so we know where to upload code. NOTE: If you upgraded from an old version of Mbed CE and are getting this error, delete and reconfigure your CMake build directory.")
if(NOT ${UPLOAD_METHOD} STREQUAL "NONE")
message(FATAL_ERROR "Since no ROM banks have been defined, you need to set the MBED_UPLOAD_BASE_ADDR option so we know where to upload code. NOTE: If you upgraded from an old version of Mbed CE and are getting this error, delete and reconfigure your CMake build directory.")
endif()
endif()
endif()

Expand Down

0 comments on commit f07c588

Please sign in to comment.