String manipulation functions like memcpy, memset, memcmp in PSoC Designer?
Employee
Jun 19, 2011
11:04 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Jun 19, 2011
11:04 AM
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.
Labels
- Tags:
- psoca software
Rate this article: