fix debug mode,lock,unlock
authorRodrigo L. Rosa <rodrigorosa.LG@gmail.com>
Tue, 30 Aug 2011 22:13:49 +0000 (15:13 -0700)
committerRodrigo L. Rosa <rodrigorosa.LG@gmail.com>
Tue, 30 Aug 2011 22:13:49 +0000 (15:13 -0700)
commiteb0734de19c51f48dd66f6bc8af4e20bdb534e63
treee8f56c9be0ba132defdcc4ef6b3122bcf7a09e96
parent1d4f294c3c61ef8ad7a5cc89f3cfbd61ecaaf846
fix debug mode,lock,unlock

got new info regarding setting the chip to debug mode, and locking/unlocking flash memory.
the newer implementation is a bit slower, but always works.
the previous implementation would randomly (as once every 25k-70k times) get the chip into a state where the freescale tool would be necessary. this is fixed now.

added functions to play around with the jtag state machine. they are not the happiest, but are necessary to be able to execute the halting/locking/unlocking sequences.

Conflicts:

src/target/dsp5680xx.c
src/target/dsp5680xx.c