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.

how to know whether CSL_semAcquireCombined has acquired the semaphore

If I use combined access to semaphore2 hardware module, how to judge whether the semaphore has been acquired or is waiting  for an grant interrupt and polling the sem flag?

thank you

  • I found answer in TI's doc,that says:

    "

    If the semaphore is free, it is granted to the core making the request and the read returns
    a “0x1”.
    If the semaphore it is not free, the resulting read returns the ID of the core that
    currently owns the semaphore.

    "

  • Good to see, you have found the reason. In addition that, find the test code for Sem2 module at the CSL.
    C:\ti\pdk_C6678_1_x_x_x\packages\ti\csl\example\sem2