Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Extend SimpleSocketServer example with pthread

For demonstration purposes, I would like to extend the SimpleSocketServer example (that comes with the Altera dev kit) with pthread (POSIX).

I installed the NIOS-II development environment on my desktop.

On my desktop (Windows XP), I can get the code to compile and execute.

However, compiling and executing on an Altera Stratix II FPGA fails.

Note that the SimpleSocketServer example uses ucos-ii as an operating system.

Are default project settings of the SimpleSocketServer example incompatible for executing code using pthread on ucos-ii / Altera Stratix FPGA?

Or does ucos-ii not support pthread?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Is there a chance that some kind of "operating system abstraction layer" is available, implementing the pthread- and time interfaces/functionalities on microC/OS-II?