memory.h missing

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

cross mob
trstc_4056926
Level 2
Level 2
First like received

It looks like the default install of PSOC Creator is missing some standard C libraries like "memory.h"

Is there a way to include these?

0 Likes
1 Solution
LiDo_2439176
Level 5
Level 5
First question asked 50 replies posted 50 sign-ins

Indeed, the GNU Arm Embedded toolchain version 5.4.1 does not contain memory.h file.

What exactly do you need ?

You can create it with the following content:

#ifndef _MEMORY_H

#define _MEMORY_H

#include <string.h>

#endif /* !_MEMORY_H */

View solution in original post

0 Likes
3 Replies
LiDo_2439176
Level 5
Level 5
First question asked 50 replies posted 50 sign-ins

Indeed, the GNU Arm Embedded toolchain version 5.4.1 does not contain memory.h file.

What exactly do you need ?

You can create it with the following content:

#ifndef _MEMORY_H

#define _MEMORY_H

#include <string.h>

#endif /* !_MEMORY_H */

0 Likes
trstc_4056926
Level 2
Level 2
First like received

I was needing memset and memcpy, which appears to be in string.h, Thanks!

I had tried to switch to newer compiler, by changing the compiler path but did not seem to work.  Overall I am not very happy with Creator it is one of the worse IDEs I have used for an ARM chip.

0 Likes

I just tested PSoc Creator 4.2 with ARM GCC 8.2.1 on Windows 10 Pro x64.

Project PSoC 4 BLE – Low Power Modes on CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit.

Debug works perfectly.

0 Likes