hosted/cmsis_dap: Add a dummy read to the end of dap_mem_write_sized() so we always wait on the write to ensure it's complete before any DP access can occur

This commit is contained in:
dragonmux 2022-08-08 00:57:07 +01:00 committed by Piotr Esden-Tempski
parent 4c544bad28
commit 3606784663
1 changed files with 3 additions and 0 deletions

View File

@ -423,6 +423,9 @@ static void dap_mem_write_sized( ADIv5_AP_t *ap, uint32_t dest, const void *src,
src += transfersize;
}
}
/* Make sure this write is complete by doing a dummy read */
adiv5_dp_read(ap->dp, ADIV5_DP_RDBUFF);
DEBUG_WIRE("memwrite done\n");
}