hi, i want to program FX2LP's Ram in a C++ application.(precisely what Control Center do when click ProgramFX2=>RAM). but the function LoadExternalRam (in C# source of control center) is not available in CYAPI. what i should to Do?
thanks
I would help you but this is not PSOC. Sorry. Maybe try contact cypress to see what the issue is.
Hi,
DownloadFw() API is used for FX3 RAM download in controlcenter. Use the same API even for FX2LP for creating C++ application.
Regards,
Hemanth
thanks, i tried this code:
CCyFX3Device USBDevice_FX3;
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
file0.close();
UCHAR opCode=0XA0;
USBDevice_FX3.DownloadFwToRam(xferBuffer0 , xferBuffer0_size, opCode);
}
but does not program my FX2LP. please help for this problem.
thanks