flash/nor/at91samd: add small delay before checking nvm status
[fw/openocd] / src / flash / nor / at91samd.c
index ece1fd20f6d6d9bf6d3b147264377dd10df55289..de0f1cc745821f1843690a2fb6e5caa51c16ba42 100644 (file)
@@ -658,6 +658,9 @@ static int samd_write_row(struct flash_bank *bank, uint32_t address,
                        return res;
                }
 
+               /* Access through AHB is stalled while flash is being programmed */
+               usleep(200);
+
                error = samd_check_error(bank->target);
                if (error)
                        return ERROR_FAIL;