Wow, thanks for both these answers. But boy, that first answer, it's April 1st and I almost couldn't believe it to be real, but indeed it seems that regex is parsing the commented line.This is what sets the PICO_PLATFORM when you specify a board - these pico_cmake_set and pico_cmake_set_default comments are parsed by the SDK in cmake/generic_board.cmake, to set the platform based on the board fileCode:
// pico_cmake_set PICO_PLATFORM=rp2350Yes, it is set by the "pico_cmake_set_default PICO_FLASH_SIZE_BYTES = ..." comment in the board fileOr is this pico_flash_region.ld generated based on PICO_FLASH_SIZE_BYTES?
Statistics: Posted by piconico — Tue Apr 01, 2025 8:48 pm