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

SENSOR-CONTROLLER-STUDIO: System hangs after 20 seconds of using sensor controller code

$
0
0

Part Number:SENSOR-CONTROLLER-STUDIO

I am trying to integrate the SCS generated code into my CCS project. The general idea is the SCS will read data for a period of time, report back to the CCS task, and then the CCS task will stop the SCS task until its needed again.

I have that part working, but after 20 seconds the CCS code hangs (either in a Task_sleep() or in the semaphore_pend() depending on timing and which is closest to that 20 second mark). The SCS task appears to be the culprit since its not calling scTaskAlertCallback after 20 seconds (although it works fine up until then).

I can either run the SCS task a bunch of times back to back, or run it a few times with a sleep() in between, but either way once 20 seconds is up, the main CCS task blocks. I understand the blocking on the semaphore, but not when it blocks on a sleep() call past the specified time.

I also can run the task in the task testing tab in SCS without issue.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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