Thanks to Dick, I tried the xsvf player, and succeeded in adding support to JTAG_STABLECLOCKS. It works on my EPM240T100 demo board. Attachment is the patch for the JTAG_STABLECLOCKS support for vsllink.
Suggestion to xsvf player.
No need to print message if not in debug mode.
My xsvf file contain more than 10 thounds commands, when play this xsvf file,
the messages flash the screen.
It's OK to output these messages when in debug mode only.
If JTAG_STABLECLOCKS is supported, JTAG_RUNTEST will be as simple as:
void vsllink_runtest(int num_cycles)
{
enum tap_state saved_end_state = end_state;
if (cur_state != TAP_IDLE)
{
// enter into IDLE state
vsllink_end_state(TAP_IDLE);
vsllink_state_move();
}
vsllink_stableclocks(num_cycles, 0); // output num_cycles when tms
is '0' to stay in TAP_IDLE mode
// post-process
// set end_state
vsllink_end_state(saved_end_state);
cur_state = TAP_IDLE;
if (end_state != TAP_IDLE)
{
vsllink_state_move();
}
}
2009-01-21
Best Regards, Simon Qian
SimonQian([email protected]) ---- www.SimonQian.com
vsllink.patch
Description: Binary data
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
