Hi Mathias, thanks. I used ftdi library, and I still did not check ftdi spec to decode message.
Timeout may be the problem, that's why I put Laurent from Amontec to CC, to check if this might be an issue with JTAGKey2 probe. I will try Tiny to see if I have the same results. I have to underline here that I am using modified mips_m4k_bulk_write_memory() which corresponds to b271efe12132e93cb17adb037323f6cf251305b2 commit and basically just calls mips_m4k_write_memory() directly. I did this because I added correct endianess treatment there, corresponding to mentioned commit. That's why I have no fast write, and with (slower) ordinary write I have this problem, but still do not know where it comes from. I am avoiding fast write for the moment also because I had mips32_pracc_fastdata_xfer() exiting with error and completely confusing OpenOCD afterwards. Simpler mips_m4k_write_memory() seems to be working better, except that it gives me these timeouts. My next step will be to analyze mips32_pracc_fastdata_xfer() and examine what is wrong there. I hope that if I can make it work maybe I can avoid timeouts... BR, Drasko On Thu, Mar 17, 2011 at 2:13 PM, Mathias K. <[email protected]> wrote: > Hello, > > the send buffer looks okay. Maybe this is a timeout problem. Do you use the > d2xx or ftdi library? > > > Regards, > > Mathias > > > Am 17.03.2011 13:14, schrieb Drasko DRASKOVIC: >> 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 >> >> 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 > _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
