aboutsummaryrefslogtreecommitdiff
path: root/src/target/dsp5680xx.c
diff options
context:
space:
mode:
authorRodrigo L. Rosa <rodrigorosa.lg@gmail.com>2011-06-10 12:23:17 -0700
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-06-12 11:18:27 +0200
commitf4b9a2fc8bbc682e957276a0012199a606c919b0 (patch)
tree55ef845116496c0aba194c8e1fd5a480a9b74ea6 /src/target/dsp5680xx.c
parentca76e4a4231e665309c7f11a6be741067ef3b09c (diff)
downloadriscv-openocd-f4b9a2fc8bbc682e957276a0012199a606c919b0.zip
riscv-openocd-f4b9a2fc8bbc682e957276a0012199a606c919b0.tar.gz
riscv-openocd-f4b9a2fc8bbc682e957276a0012199a606c919b0.tar.bz2
flash speed improved
Diffstat (limited to 'src/target/dsp5680xx.c')
-rw-r--r--src/target/dsp5680xx.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/target/dsp5680xx.c b/src/target/dsp5680xx.c
index 1f26b69..3db31d3 100644
--- a/src/target/dsp5680xx.c
+++ b/src/target/dsp5680xx.c
@@ -1230,6 +1230,9 @@ int dsp5680xx_f_wr(struct target * target, uint8_t *buffer, uint32_t address, ui
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
// Setup registers needed by pgm_write_pflash
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+ context.flush = 0;
+
retval = eonce_move_long_to_r3(target,address); // Destination address to r3
err_check_propagate(retval);
eonce_load_TX_RX_high_to_r0(target); // TX/RX reg address to r0
@@ -1256,6 +1259,11 @@ int dsp5680xx_f_wr(struct target * target, uint8_t *buffer, uint32_t address, ui
retval = ERROR_FAIL;
err_check(retval,"Cannot handle odd number of words.");
}
+
+ context.flush = 1;
+ retval = dsp5680xx_execute_queue();
+ err_check_propagate(retval);
+
uint32_t drscan_data;
retval = eonce_tx_upper_data(target,buff16[0],&drscan_data);
err_check_propagate(retval);