This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC2640R2F: Undefined reference at pthread_create : first reference <whole program>

Part Number: CC2640R2F
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hello,

I am using pininterrupt example code to create two pin interrupt,

but when i combined both main_tirtos.c and pinInterrupt.c, it is showing me errors for pthread.c functions.

It's showing undefined reference at "pthread_function" <whole program>

what could be the possible reason?

I've added sysbios in my project also and also added pthread library.

regards,

jaydipsinh sondarva

  • Jaydipsinh,

    Did you add the following include path for posix?

    ${COM_TI_SIMPLELINK_CC2640R2_SDK_INSTALL_DIR}/kernel/tirtos/packages/ti/sysbios/posix

    Posix also needs to be built into the kernel (the .cfg file for TIRTOS). You can follow the steps for that here:
    e2e.ti.com/.../2543887

    We are working on making this easier in the future.