Browse Source

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

pull/1185/head
dragonmux 2 years ago
committed by Piotr Esden-Tempski
parent
commit
3606784663
  1. 3
      src/platforms/hosted/cmsis_dap.c

3
src/platforms/hosted/cmsis_dap.c

@ -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…
Cancel
Save