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

cross mob

String manipulation functions like memcpy, memset, memcmp in PSoC Designer?

String manipulation functions like memcpy, memset, memcmp in PSoC Designer?

KishoreS_96
Employee
Employee
5 sign-ins 50 replies posted 25 replies posted
Question: String Manipulation functions are not working in PSoC Designer. How to make them work?

 

Answer:

Add the following three lines,

#define memcpy memcpyLMM
#define memset memsetLMM
#define memset memcmpLMM

into the line#19 (right next to cstrlen) of this file:
C:\Program Files\Cypress\Common\CypressSemiBuildMgr\tools\include\string.h

LMM stands for Large Memory Model.
As the memcpyLMM function was not defined, it is not possible to copy strings of size more than 255 because it has to be copied between different pages itself. So adding the function definition will solve the problem.

0 Likes
816 Views
Contributors