Program FX2LP's RAM in C++

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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

0 Likes
3 Replies
Anonymous
Not applicable

I would help you but this is not PSOC. Sorry. Maybe try contact cypress to see what the issue is.

0 Likes
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hi,

   


DownloadFw() API is used for FX3 RAM download in controlcenter. Use the same API even for FX2LP for creating C++ application.

   

Regards,

   

Hemanth
 

Hemanth
0 Likes
Anonymous
Not applicable

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
 

0 Likes