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.

PortHandler issues on TMS320F2812

I am using CCS 5.2.1 and DSP/BIOS 5.41.13.42 and the port handlers converted from a CCS 3.1 project are not working. I have 4 tasks set up as Port_1_handler through Port_4_handler.  Each one has two corresponding semaphores: Portx_sem and PortxTx_sem. I have a few questions:


1) Why would there be two semaphores for each port? DoesTI provide these port handlers?

2) In the RTOS Object Viewer it seems that Port2Tx_sem and Port3Tx_sem are never getting posted as the count keeps climbing (seen below). Any suggestions on troubleshooting?

  • Robert,

    I read the ROV view differently. It looks to me like the Port2Tx_sem and Port3Tx_sem are never being pended on. The sem count is incremented on every SEM_post() call. If no task is blocked on the semaphore, the count will never be decremented.

    Can you provide more details about the project? What are the Port 2 and 3 handler tasks doing? They both appear to be blocked waiting for a SEM_post() of Port2_sem and Port3_sem respectively. Who posts those semaphores and why aren't they doing it?

    Alan