I would help you but this is
notPSOC. Sorry. Maybe try contact cypress to see what the issue is.
DownloadFw() API is used for FX3 RAM download in controlcenter. Use the same API even for FX2LP for creating C++ application.
thanks, i tried this code:
QFile file0( "slave.hex" );
QByteArray FPGA_Prog = file0.readAll();
UINT xferBuffer0_size = file0.size();
unsigned char xferBuffer0[file0.size()];
memcpy(&xferBuffer0, FPGA_Prog.data(), file0.size());// convert file's data to unsigned char in xferBuffer0
USBDevice_FX3.DownloadFwToRam(xferBuffer0 , xferBuffer0_size, opCode);
but does not program my FX2LP. please help for this problem.