Hi Mathias, I reconfigured OpenOCD to show many informations with --enable-verbose-usb-io --enable-verbose-usb-comms --enable-verbose-jtag-io.
I captured the log that shows error (pasted below). For the moment I have no idea what this means, I'll have to open FTDI spec. 3174050 Debug: 3174383 188209 ft2232.c:499 move_to_state(): start=DRPAUSE goal=RUN/IDLE 3174051 Debug: 3174384 188209 ft2232.c:438 clock_tms(): mpsse cmd=4b, tms_bits = 0x00000003, bit_count=3 3174052 Debug: 3174385 188209 ft2232.c:448 clock_tms(): tap_set_state(DREXIT2) 3174053 Debug: 3174386 188209 ft2232.c:448 clock_tms(): tap_set_state(DRUPDATE) 3174054 Debug: 3174387 188209 ft2232.c:448 clock_tms(): tap_set_state(RUN/IDLE) 3174055 Debug: 3174388 188209 ft2232.c:1974 ft2232_execute_scan(): DR scan, 32 bits, end in RUN/IDLE 3174056 Debug: 3174389 188209 ft2232.c:809 ft2232_send_and_recv(): write buffer (size 18): 3174057 Debug: 3174390 188209 ft2232.c:784 ft2232_debug_dump_buffer(): 4b 02 01 39 02 00 00 c0 04 3b 06 80 6b 01 81 4b 3174058 Debug: 3174391 188209 ft2232.c:790 ft2232_debug_dump_buffer(): 02 03 3174059 Error: 3174392 192209 ft2232.c:584 ft2232_read(): couldn't read enough bytes from FT2232 device (0 < 5) 3174060 Error: 3174393 192209 ft2232.c:839 ft2232_send_and_recv(): couldn't read from FT2232 3174061 Error: 3174394 192209 mips_ejtag.c:115 mips_ejtag_drscan_32(): register read failed 3174062 Debug: 3174395 192209 ft2232.c:1933 ft2232_execute_scan(): IRSCAN type:2 3174063 Debug: 3174396 192209 commands.c:189 jtag_build_buffer(): IRSCAN num_fields: 1 3174064 Debug: 3174397 192209 commands.c:202 jtag_build_buffer(): fields[0].out_value[5]: 0x08 3174065 Debug: 3174398 192209 ft2232.c:499 move_to_state(): start=RUN/IDLE goal=IRSHIFT 3174066 Debug: 3174399 192209 ft2232.c:438 clock_tms(): mpsse cmd=4b, tms_bits = 0x00000003, bit_count=4 3174067 Debug: 3174400 192209 ft2232.c:448 clock_tms(): tap_set_state(DRSELECT) 3174068 Debug: 3174401 192209 ft2232.c:448 clock_tms(): tap_set_state(IRSELECT) 3174069 Debug: 3174402 192209 ft2232.c:448 clock_tms(): tap_set_state(IRCAPTURE) 3174070 Debug: 3174403 192209 ft2232.c:448 clock_tms(): tap_set_state(IRSHIFT) 3174071 Debug: 3174404 192209 ft2232.c:1122 ft2232_add_scan(): finish without read 3174072 Debug: 3174405 192209 ft2232.c:438 clock_tms(): mpsse cmd=4b, tms_bits = 0x00000003, bit_count=3 3174073 Debug: 3174406 192209 ft2232.c:448 clock_tms(): tap_set_state(IREXIT1) 3174074 Debug: 3174407 192209 ft2232.c:448 clock_tms(): tap_set_state(IRUPDATE) 3174075 Debug: 3174408 192209 ft2232.c:448 clock_tms(): tap_set_state(RUN/IDLE) 3174076 Debug: 3174409 192209 ft2232.c:1974 ft2232_execute_scan(): IR scan, 5 bits, end in RUN/IDLE 3174077 Debug: 3174410 192209 ft2232.c:1933 ft2232_execute_scan(): DRSCAN type:3 3174078 Debug: 3174411 192209 commands.c:189 jtag_build_buffer(): DRSCAN num_fields: 1 3174079 Debug: 3174412 192209 commands.c:202 jtag_build_buffer(): fields[0].out_value[32]: 0x00000000 3174080 Debug: 3174413 192209 ft2232.c:499 move_to_state(): start=RUN/IDLE goal=DRSHIFT 3174081 Debug: 3174414 192209 ft2232.c:438 clock_tms(): mpsse cmd=4b, tms_bits = 0x00000001, bit_count=3 3174082 Debug: 3174415 192209 ft2232.c:448 clock_tms(): tap_set_state(DRSELECT) 3174083 Debug: 3174416 192209 ft2232.c:448 clock_tms(): tap_set_state(DRCAPTURE) 3174084 Debug: 3174417 192209 ft2232.c:448 clock_tms(): tap_set_state(DRSHIFT) 3174085 Debug: 3174418 192209 ft2232.c:1122 ft2232_add_scan(): finish via PAUSE Errors repeat later : 5759736 Debug: 5760353 334312 ft2232.c:809 ft2232_send_and_recv(): write buffer (size 27): 5759737 Debug: 5760354 334312 ft2232.c:784 ft2232_debug_dump_buffer(): 4b 03 03 1b 03 0a 4b 02 03 4b 02 01 39 02 00 00 5759738 Debug: 5760355 334312 ft2232.c:790 ft2232_debug_dump_buffer(): c0 00 3b 06 80 6b 01 81 4b 02 03 5759739 Error: 5760356 338311 ft2232.c:584 ft2232_read(): couldn't read enough bytes from FT2232 device (0 < 5) 5759740 Error: 5760357 338311 ft2232.c:839 ft2232_send_and_recv(): couldn't read from FT2232 5759741 Error: 5760358 338311 mips_ejtag.c:115 mips_ejtag_drscan_32(): register read failed 5759742 Debug: 5760359 338311 ft2232.c:2040 ft2232_execute_stableclocks(): clocks 5 while in RUN/IDLE 5759743 Debug: 5760360 338311 ft2232.c:809 ft2232_send_and_recv(): write buffer (size 3): 5759744 Debug: 5760361 338311 ft2232.c:790 ft2232_debug_dump_buffer(): 4b 04 00 5759745 Debug: 5760362 338312 ft2232.c:1933 ft2232_execute_scan(): DRSCAN type:3 On Thu, Mar 17, 2011 at 6:57 AM, Mathias K. <kes...@freenet.de> wrote: > Hello, > > Am 16.03.2011 20:19, schrieb Drasko DRASKOVIC: >> However, trying to load a bigger image function >> mips_m4k_bulk_write_memory() is called an fails in >> mips32_pracc_fastdata_xfer(). So, making mips_m4k_bulk_write_memory() >> to fall straight away to simple mips_m4k_write_memory(), like in >> mentioned David's commit b271efe12132e93cb17adb037323f6cf251305b2 >> seems to be showing better results, but I still have following error >> for bigger writes : >> >> couldn't read enough bytes from FT2232 device (0 < 5) >> couldn't read from FT2232 >> register read failed >> >> Do you have any idea why this is happening and can this be related to >> Amontec JTAG Key 2 probe I have been using ? > > Can you try to start openocd with -d 3 and try again to see more informations > related to this issue. > > > Regards, > > Mathias > _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development