flash_range_program() has an assert that checks it doesn't exceed PICO_FLASH_SIZE_BYTES. PICO_FLASH_SIZE_BYTES is defined in the board header file. If you're still using the file for a Pico then it is set to 2MB. Your custom board needs its own file or piggyback off another board that is configured in the same way as yours.
Statistics: Posted by trejan — Sat Dec 23, 2023 9:22 pm