Hi all,
can somebody explain me please ft2232_debug_dump_buffer() log I got,
based on following :

Debug: 698 6975 ft2232.c:1884 ft2232_execute_scan(): DRSCAN type:2
Debug: 699 6975 commands.c:189 jtag_build_buffer(): DRSCAN num_fields: 7
Debug: 700 6975 commands.c:211 jtag_build_buffer(): fields[0].out_value[1]: NULL
Debug: 701 6975 commands.c:211 jtag_build_buffer(): fields[1].out_value[1]: NULL
Debug: 702 6975 commands.c:211 jtag_build_buffer(): fields[2].out_value[1]: NULL
Debug: 703 6975 commands.c:211 jtag_build_buffer(): fields[3].out_value[1]: NULL
Debug: 704 6975 commands.c:202 jtag_build_buffer():
fields[4].out_value[12]: 0x0020
Debug: 705 6975 commands.c:211 jtag_build_buffer(): fields[5].out_value[1]: NULL
Debug: 706 6975 commands.c:211 jtag_build_buffer(): fields[6].out_value[1]: NULL
Debug: 707 6975 ft2232.c:480 move_to_state(): start=RUN/IDLE goal=DRSHIFT
Debug: 708 6975 ft2232.c:419 clock_tms(): mpsse cmd=4b, tms_bits =
0x00000001, bit_count=3
Debug: 709 6975 ft2232.c:429 clock_tms(): tap_set_state(DRSELECT)
Debug: 710 6975 ft2232.c:429 clock_tms(): tap_set_state(DRCAPTURE)
Debug: 711 6975 ft2232.c:429 clock_tms(): tap_set_state(DRSHIFT)
Debug: 712 6975 ft2232.c:1103 ft2232_add_scan(): finish without read
Debug: 713 6975 ft2232.c:419 clock_tms(): mpsse cmd=4b, tms_bits =
0x00000003, bit_count=3
Debug: 714 6975 ft2232.c:429 clock_tms(): tap_set_state(DREXIT1)
Debug: 715 6975 ft2232.c:429 clock_tms(): tap_set_state(DRUPDATE)
Debug: 716 6975 ft2232.c:429 clock_tms(): tap_set_state(RUN/IDLE)
Debug: 717 6975 ft2232.c:1925 ft2232_execute_scan(): DR scan, 18 bits,
end in RUN/IDLE
Debug: 718 6975 ft2232.c:790 ft2232_send_and_recv(): write buffer (size 14):
Debug: 719 6975 ft2232.c:771 ft2232_debug_dump_buffer(): 4b 02 01 19
01 00 00 02 1b 00 00 4b 02 03

How can we dissect value 4b 02 01 19 01 00 00 02 1b 00 00 4b 02 03 ?

I guess that 4b 02 01 in the beginning and 4b 02 03 in the end have
something to do with "Debug: 708 6975 ft2232.c:419 clock_tms(): mpsse
cmd=4b, tms_bits = 0x00000001, bit_count=3" and "Debug: 713 6975
ft2232.c:419 clock_tms(): mpsse cmd=4b, tms_bits = 0x00000003,
bit_count=3" recursively, but I do not get what 02 stands for and why
are these in beggining and end ?

Where can I find my  fields[4].out_value[12]: 0x0020 in this buffer dump ?

Is this buffer output on the tdo line with LSB first or with MSB first
? I.e. Will my 12 bits 0x0020 be output with LSB first or with MSB
first on tdo line (depending on which I have to create this value, so
I wonder if I must do swapping locally before inserting in buffer).

Many thanks and best regards,
Drasko
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to