Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CC3220: POSIX and TI-RTOS : Calling Task_SetPri()

$
0
0

Part Number:CC3220

Hi,

I've been having stability problems porting my application from GEN1 (stable with TI-RTOS)  to GEN2 with POSIX.  (ROV reports no errors but it still occasionally crashes).

I have modified the 'httpget' project (TI-RTOS derivative). In the project I use the TI-RTOS static configurator for task, semaphore and clock function creation.

In the function 'SimplLinkNetAppEventHandler' (in platform.c) once the system has acquired a network address I have replaced the POSIX created httpTask  with a Task_SetPri(MyTask,MyPri) call to change MyTask from inactive (-1) to Active (2)  and let it run. 'MyTask' is one of the tasks I created using the static configurator.

Now I noticed in the following WIKI that a Task_SetPri() call from a pthread is not allowed:

processors.wiki.ti.com/.../BIOS_POSIX_Thread_(pthread)_Support

"SYS/BIOS supports both pthread and pthread_attrs APIs for POSIX threads.

Since each SYS/BIOS pthread has an underlying Task object, some of the SYS/BIOS Task APIs can be called from a pthread. These include Task_sleep(), Task_yield(), Task_self(), and Task_getPri(). Some Task APIs, such as Task_setPri(), should never be called from a pthread."

Am I still OK however to call Task_SetPri() from the function 'SimpleLinkNetAppEventHandler' ? If not then how would I make my inactive task become active. If I can then my problem must lie elsewhere and I need to dig a bit deeper.

thks & rgds,

Stuart


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>