This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C166: task creation

I want to create a task and pass a parameter to it. So I used function "os_tsk_create_ex" and define the task function as: void task3 (int *argv) __task 12 __priority 1{...}

When compiling this file, an error occurred: error: __interrupt/__using/__task function cannot receive/return value(s)

What's the reason of it?
Thanks.

Parents
  • I'm not sure for the C166 version. My current version of C166 is v6.09a. We have introduced parameters passing to task with AR166 v2.00 released in august 2005.

    The EC++ version supporting it is v1.09b

    I suggest you download an update for your PK166. Then it should work.

    Franc

Reply
  • I'm not sure for the C166 version. My current version of C166 is v6.09a. We have introduced parameters passing to task with AR166 v2.00 released in august 2005.

    The EC++ version supporting it is v1.09b

    I suggest you download an update for your PK166. Then it should work.

    Franc

Children