/** * Writes an array of bytes to memory. Addr must be word aligned and len must be a multiple of 4. */ void jshFlashWrite(void * buf, uint32_t addr, uint32_t len) { uint8_t * write_buf = buf; if ((addr & (3UL)) != 0 || (len % 4) != 0) { return; } nrf_utils_write_flash_bytes(addr, write_buf, len); }
/// Write data to flash memory from the buffer void jshFlashWrite(void *buf, uint32_t addr, uint32_t len) { nrf_utils_write_flash_bytes(addr, (uint8_t *) buf, len); //nrf_utils_write_flash_addresses(addr, (uint32_t *) buf, (len / 4)); }