- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can the fork() and pipe() function be used with the PSOC 5LP? I seem to get undefined reference when using them although they are declared. I realize PSOC 5LP is not multi-CPU but I have a function that blocks my loop and I don't really care if it takes a while to execute. Just need to fire it off from within my loop.
Solved! Go to Solution.
- Labels:
-
PSoC Creator & Designer Software
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't believe fork() and pipe() exist on PSoC5LP as there is no Operating System.
There is some RTOS support for PSoC5LP, but it doesn't looks like any of them are fully POSIX compliant
freeRTOS has some kind of POSIX wrapper
uOS-III has some POSIX support, but not for fork()/pipe() looks like.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
rg,
You need the reference to the include file "unistd.h" for the fork() or pipe() function to be declared.
eq: #include <unistd.h>
This solves the "unidentified reference" issue.
However, the PSoC5 does not have a native multi-tasking or multi-processing OS. I'm not sure where these functions would take you.
There is a port of FreeRTOS for the PSoC5.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't believe fork() and pipe() exist on PSoC5LP as there is no Operating System.
There is some RTOS support for PSoC5LP, but it doesn't looks like any of them are fully POSIX compliant
freeRTOS has some kind of POSIX wrapper
uOS-III has some POSIX support, but not for fork()/pipe() looks like.