3DMahdi
Newbie level 1
Hi
I want application for activating MPSSE mode in FT2232D to program fpga with USB.
I know that to do this, I have to send below command to D2XX driver but I don't know how:
I have FTCJTAG.DLL and FD2XX.DLL but don't know how to use them.
can you help me?
thanks in advance.
I want application for activating MPSSE mode in FT2232D to program fpga with USB.
I know that to do this, I have to send below command to D2XX driver but I don't know how:
Code:
FT_HANDLE ftHandle;
FT_STATUS ftStatus;
UCHAR Mask = 0xff;
UCHAR Mode = 0x02; // Set MPSSE mode
ftStatus = FT_Open(0, &ftHandle);
if(ftStatus != FT_OK)
{ // FT_Open failed return;
}
ftStatus = FT_SetBitMode(ftHandle, Mask, Mode);
if (ftStatus == FT_OK)
{ // 0xff written to device
}
else {
// FT_SetBitMode FAILED!
}
FT_Close(ftHandle);
I have FTCJTAG.DLL and FD2XX.DLL but don't know how to use them.
can you help me?
thanks in advance.