dsp5680xx - fix - flashing algorithm check
commit211a32711f9d3a0178b4f524b4c1a1152a2858ce
authorrodrigo_l_rosa <rodrigorosa.lg@gmail.com>
Tue, 15 Nov 2011 16:14:32 +0000 (15 08:14 -0800)
committerrodrigo_l_rosa <rodrigorosa.lg@gmail.com>
Mon, 21 Nov 2011 20:00:52 +0000 (21 12:00 -0800)
tree9d374548ad2d07e6642ad2523b22583adaaf9c42
parent3660dc4f344d90e3eba71121361d733e375023a9
dsp5680xx - fix - flashing algorithm check

now the flash algorithm running on the 568013 checks the buffer_empty bit (instead of the command_finished bit) before trying to write a new word to the flash mem.
this should speed up the flashing procedure. since it is open loop, this change may reduce the risk of failure. flashing will fail if JTAG speed is such that the flash module cannot keep up.

also, the USTAT register is only read once, as suggested in the flow chart provided by freescale (per. ref. manual @ 6-11)

the last step of the flow chart, exiting after commands are complete, is not implemented.
the algorithm will stay waiting for more data. it is up to the PC side to *not* send more data.

Change-Id: I47fe4b50de7da85f80868f5986a89a7e2152616c
Signed-off-by: Rodrigo L. Rosa <rodrigorosa.lg@gmail.com>
src/target/dsp5680xx.c