diff options
author | Rodrigo L. Rosa <rodrigorosa.lg@gmail.com> | 2011-05-18 20:11:04 -0700 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-05-19 07:27:02 +0200 |
commit | ef599aebfdbca9fa1b710d272d93d9d6b6999801 (patch) | |
tree | d1891eeed5460d121c3024ce9342676df24498a3 /src/target/dsp5680xx.h | |
parent | ee124401a21f4dff3332f3f417b7bd2e67034cbc (diff) |
flashing speed improved using queued jtag. error propagation improved.
Diffstat (limited to 'src/target/dsp5680xx.h')
-rw-r--r-- | src/target/dsp5680xx.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/target/dsp5680xx.h b/src/target/dsp5680xx.h index 84e15998..9f66ee74 100644 --- a/src/target/dsp5680xx.h +++ b/src/target/dsp5680xx.h @@ -124,6 +124,8 @@ #define DSP5680XX_ONCE_OPABDR 0x13 /* OnCE Program Address Register—Decode cycle (OPABDR) */ //---------------------------------------------------------------- +#define FLUSH_COUNT_WRITE 4095 // This value works, higher values (and lower...) may work as well. +#define FLUSH_COUNT_FLASH 7 // Waiting for longer queues will cause flashing errors. //---------------------------------------------------------------- // HFM (flash module) Commands (ref:MC56F801xRM.pdf@159) //---------------------------------------------------------------- @@ -190,21 +192,16 @@ #define SIM_CMD_RESET 0x10 //---------------------------------------------------------------- -struct dsp5680xx_common -{ -//TODO -}; - -static inline struct dsp5680xx_common *target_to_dsp5680xx(struct target *target) -{ - return target->arch_info; -} - -struct context -{ +struct dsp5680xx_common{ + //TODO uint32_t stored_pc; + int flush; }context; +static inline struct dsp5680xx_common *target_to_dsp5680xx(struct target *target){ + return target->arch_info; +} + int dsp5680xx_f_wr(struct target * target, uint8_t *buffer, uint32_t address, uint32_t count); int dsp5680xx_f_erase_check(struct target * target,uint8_t * erased); |