jflemer-ndp / libmpsse

Automatically exported from code.google.com/p/libmpsse
0 stars 0 forks source link

FastTransfer doesn't work #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
FastTransfer is called with pointer to a non empty output buffer, and an input 
buffer, transfer size : 2 bytes.

Expecting a 2-byte SPI transaction, but only the start and stop condition (CS 
going down and then up) appear on a logic analyzer.
Function returns MPSSE_FAIL.

Code :

    uint8_t outbuf[2];
    uint8_t inbuf[2];
[...]
    outbuf[0] = READ_ACCESS | (address & 0x7F);
    outbuf[1] = 0x00;
    i = Start(mpsse);
    j = FastTransfer(mpsse, (char *)outbuf, (char *)inbuf, 2);
    k = Stop(mpsse);

Using libmpsse 1.3 with a FT2232H on a Linux ARM system (Pcduino).

An similar subroutine calling
    j = FastWrite(mpsse, (char *)outbuf, 2);
is working properly.

Original issue reported on code.google.com by sylvain....@gmail.com on 24 Jul 2013 at 7:18

GoogleCodeExporter commented 9 years ago
Looking at the code I think I see the issue. Will verify ASAP.

Original comment by heffne...@gmail.com on 1 Oct 2013 at 7:12

GoogleCodeExporter commented 9 years ago
This problem is not solved yet?

Original comment by arh...@gmail.com on 9 Apr 2014 at 11:22