We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
hal_flash_write
1 parent 0a0e8f6 commit 68b5f67Copy full SHA for 68b5f67
1 file changed
hal/hifive1.c
@@ -452,6 +452,7 @@ int RAMFUNCTION hal_flash_write(uint32_t address, const uint8_t *data, int len)
452
fespi_sw_setdir(FESPI_DIR_RX);
453
fespi_wait_txwm();
454
page++;
455
+ data += FLASH_PAGE_SIZE;
456
off = 0;
457
}
458
fespi_wait_flash_writing();
0 commit comments