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

RTOS/LAUNCHXL-CC26X2R1: Queues across tasks

$
0
0

Part Number:LAUNCHXL-CC26X2R1

Tool/software: TI-RTOS

Hi, 

I am using the ble_multi_role example as the base for my project.

In my project, I am using multiple queues and 2 tasks. The tasks communicate with each other using the queues. 

Currently, the issue I am facing is that the code stops execution after some time. It just halts and then both the tasks stop execution.

I tried the same project with one of the tasks not being made to run ( meaning the Event for which it pends is never posted ), then the issue does not exist.

Could this be due to heap fragmentation or something (since I am using mallocs for the enqueue process)? But if it were an issue related to the heap would not the code execution always halt after the same time(since the same data traffic is being used for the queues during each test). In my case, the code sometimes halts after 30-35minutes and sometimes within 5-15 minutes

I did try replacing the enqueue and dequeue with get and put to make them atomic. But still the issue existed.

Regards,

Shyam


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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