Change-Id: I9be285320b31b71f0aace5f559195714609f461b
Signed-off-by: Keith Packard <keithp@keithp.com>
if (manual_wp || pg_offset + 4 * nw < chip->page_size) {
res = samd_issue_nvmctrl_command(bank->target, SAMD_NVM_CMD_WP);
} else {
- /* Access through AHB is stalled while flash is being programmed */
- usleep(1000);
res = samd_check_error(bank->target);
}
goto free_pb;
}
+ /* Access through AHB is stalled while flash is being programmed */
+ usleep(100000);
+
/* We're done with the page contents */
count -= nb;
offset += nb;