rom_flash_range_program() function
Program bytes in flash Program data to a range of flash addresses starting at addr (offset from the start of flash) and count bytes in size. addr must be aligned to a 256-byte boundary, and count must be a multiple of 256. This is a low-level flash API, and no validation of the arguments is performed. \if rp2350_specific See rom_flash_op on RP2350 for a higher-level API which checks alignment, flash bounds and partition permissions, and can transparently apply a runtime-to-storage address translation. The QSPI device must be in a serial command state before calling this API - see notes on rom_flash_range_erase \endif
Syntax
static inline void rom_flash_range_program(uint32_t addr,
const uint8_t *data,
size_t count);
Arguments
addr
the offset from start of flash to be erased
data
buffer containing the data to be written
count
number of bytes to erase