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:
parent
4c544bad28
commit
3606784663
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue