Drasko DRASKOVIC wrote:
On Thu, Mar 17, 2011 at 3:19 PM, Laurent Gauch
<laurent.ga...@amontec.com> wrote:
I do not need the complete debug log file for sure :-) but try to cut it
with 2 to 4 command queue execute before your trouble.

I am thinking of a corrupted mpsse command just before your send the command
buffer we are talking about.


Hi Laurent,
here are the logs that hopefully shows more information about the
error. Please find them below. All was tested with libftdi, and not
with Amontec driver.


First group of error that appears only sometimes during the init
phase, Error: 244 4321 ft2232.c:584 ft2232_read(): couldn't read
enough bytes from FT2232 device (0 < 81), is not systematic and I
think that it is not dangerous.
But this Error: 244 is not normal anyway, and I would like to understand this before going to Error: 4163129

The Error: 244 is coming really quickly when we try to detect the IDCODEs of the chain ... This is really bad already.

I would to see this is coming from the kernel driver. (we already see "couldn't read enough bytes from (0 < xx)" when we started with the JTAGkey-2 based FT2232H ... updating the driver was resolving the trouble) Please let me know the result with Amontec JTAGkey d2xx WHQL certified driver .

Regards,
Laurent Gauch
http://www.amontec.com Amontec JTAGkey-3 coming soon ! Generic USB JTAG CJTAG SWD SWO serial wire debug interface 1.5V 1.8V 2.5V 3.3V 5V auto-sense protected IOs With RTCK support

Other errors like this :
Error: 4163129 274107 ft2232.c:584 ft2232_read(): couldn't read enough
bytes from FT2232 device (0 < 5)
are something that is systematic, appears every time and I think they
are main problem during the write.

I hope that these logs give more information. I will try the same
tests with Amontec driver and keep you informed of results.

BR,
Drasko







Debug: 132 43 command.c:151 script_debug(): command - ocd_command
ocd_command type ocd_init
Debug: 133 43 command.c:151 script_debug(): command - init ocd_init
Debug: 135 43 command.c:151 script_debug(): command - ocd_command
ocd_command type ocd_target init
Debug: 136 43 command.c:151 script_debug(): command - ocd_target ocd_target init
Debug: 138 43 target.c:911 handle_target_init_command(): Initializing targets...
Debug: 139 43 command.c:364 register_command_handler(): registering
'ocd_target_request'...
Debug: 140 44 command.c:364 register_command_handler(): registering
'ocd_trace'...
Debug: 141 44 command.c:364 register_command_handler(): registering
'ocd_trace'...
Debug: 142 44 command.c:364 register_command_handler(): registering
'ocd_fast_load_image'...
Debug: 143 44 command.c:364 register_command_handler(): registering
'ocd_fast_load'...
Debug: 144 44 command.c:364 register_command_handler(): registering
'ocd_profile'...
Debug: 145 44 command.c:364 register_command_handler(): registering
'ocd_virt2phys'...
Debug: 146 44 command.c:364 register_command_handler(): registering 'ocd_reg'...
Debug: 147 44 command.c:364 register_command_handler(): registering
'ocd_poll'...
Debug: 148 44 command.c:364 register_command_handler(): registering
'ocd_wait_halt'...
Debug: 149 44 command.c:364 register_command_handler(): registering
'ocd_halt'...
Debug: 150 44 command.c:364 register_command_handler(): registering
'ocd_resume'...
Debug: 151 44 command.c:364 register_command_handler(): registering
'ocd_reset'...
Debug: 152 44 command.c:364 register_command_handler(): registering
'ocd_soft_reset_halt'...
Debug: 153 44 command.c:364 register_command_handler(): registering
'ocd_step'...
Debug: 154 44 command.c:364 register_command_handler(): registering 'ocd_mdw'...
Debug: 155 44 command.c:364 register_command_handler(): registering 'ocd_mdh'...
Debug: 156 44 command.c:364 register_command_handler(): registering 'ocd_mdb'...
Debug: 157 44 command.c:364 register_command_handler(): registering 'ocd_mww'...
Debug: 158 44 command.c:364 register_command_handler(): registering 'ocd_mwh'...
Debug: 159 44 command.c:364 register_command_handler(): registering 'ocd_mwb'...
Debug: 160 44 command.c:364 register_command_handler(): registering 'ocd_bp'...
Debug: 161 44 command.c:364 register_command_handler(): registering 'ocd_rbp'...
Debug: 162 44 command.c:364 register_command_handler(): registering 'ocd_wp'...
Debug: 163 44 command.c:364 register_command_handler(): registering 'ocd_rwp'...
Debug: 164 44 command.c:364 register_command_handler(): registering
'ocd_load_image'...
Debug: 165 44 command.c:364 register_command_handler(): registering
'ocd_dump_image'...
Debug: 166 44 command.c:364 register_command_handler(): registering
'ocd_verify_image'...
Debug: 167 44 command.c:364 register_command_handler(): registering
'ocd_test_image'...
Debug: 168 44 command.c:364 register_command_handler(): registering
'ocd_reset_nag'...
Debug: 169 44 ft2232.c:2433 ft2232_init(): ft2232 interface using
shortest path jtag state transitions
Debug: 170 44 ft2232.c:2306 ft2232_init_libftdi(): 'ft2232' interface
using libftdi with 'jtagkey' layout (0403:cff8)
Debug: 171 318 ft2232.c:2353 ft2232_init_libftdi(): current latency timer: 2
Debug: 172 318 ft2232.c:2364 ft2232_init_libftdi(): FTDI chip type: 4 "2232H"
Debug: 173 318 ft2232.c:2390 ft2232_set_data_bits_low_byte(): 80 08 1b
Debug: 174 318 ft2232.c:2410 ft2232_set_data_bits_high_byte(): 82 09 0f
Info : 175 318 ft2232.c:641 ft2232h_ft4232h_clk_divide_by_5(): max TCK
change to: 30000 kHz
Debug: 176 318 core.c:1591 adapter_khz_to_speed(): convert khz to
interface specific speed value
Debug: 177 318 core.c:1595 adapter_khz_to_speed(): have interface set up
Debug: 178 318 ft2232.c:609 ft2232h_ft4232h_adaptive_clocking(): 97
Debug: 179 318 ft2232.c:670 ft2232_speed(): 86 04 00
Debug: 180 319 core.c:1591 adapter_khz_to_speed(): convert khz to
interface specific speed value
Debug: 181 319 core.c:1595 adapter_khz_to_speed(): have interface set up
Debug: 182 319 core.c:1591 adapter_khz_to_speed(): convert khz to
interface specific speed value
Debug: 183 319 core.c:1595 adapter_khz_to_speed(): have interface set up
Info : 184 319 core.c:1410 adapter_init(): clock speed 6000 kHz
Debug: 185 319 openocd.c:137 handle_init_command(): Debug Adapter init complete
Debug: 186 319 command.c:151 script_debug(): command - ocd_command
ocd_command type ocd_transport init
Debug: 187 319 command.c:151 script_debug(): command - ocd_transport
ocd_transport init
Debug: 189 319 transport.c:255 handle_transport_init(): handle_transport_init
Debug: 190 319 ft2232.c:1986 ft2232_execute_reset(): reset trst: 0 srst 0
Debug: 191 319 ft2232.c:1474 jtagkey_reset(): trst: 0, srst: 0,
high_output: 0x09, high_direction: 0x0f
Debug: 192 319 ft2232.c:2007 ft2232_execute_reset(): trst: 0, srst: 0
Debug: 193 319 ft2232.c:809 ft2232_send_and_recv(): write buffer (size 3):
Debug: 194 319 ft2232.c:790 ft2232_debug_dump_buffer(): 82 09 0f
Debug: 195 319 core.c:713 jtag_add_reset(): SRST line released
Debug: 196 319 core.c:737 jtag_add_reset(): TRST line released
Debug: 197 319 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 198 319 command.c:151 script_debug(): command - ocd_command
ocd_command type ocd_jtag arp_init
Debug: 199 319 command.c:151 script_debug(): command - ocd_jtag
ocd_jtag arp_init
Debug: 200 319 core.c:1424 jtag_init_inner(): Init JTAG chain
Debug: 201 319 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 202 319 ft2232.c:1798 ft2232_execute_statemove(): statemove end in RESET
Debug: 203 319 ft2232.c:438 clock_tms(): mpsse cmd=4b, tms_bits =
0x000000ff, bit_count=5
Debug: 204 319 ft2232.c:448 clock_tms(): tap_set_state(RESET)
Debug: 205 319 ft2232.c:448 clock_tms(): tap_set_state(RESET)
Debug: 206 319 ft2232.c:448 clock_tms(): tap_set_state(RESET)
Debug: 207 319 ft2232.c:448 clock_tms(): tap_set_state(RESET)
Debug: 208 319 ft2232.c:448 clock_tms(): tap_set_state(RESET)
Debug: 209 319 ft2232.c:809 ft2232_send_and_recv(): write buffer (size 3):
Debug: 210 319 ft2232.c:790 ft2232_debug_dump_buffer(): 4b 04 1f
Debug: 211 319 core.c:1055 jtag_examine_chain(): DR scan interrogation
for IDCODE/BYPASS

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to