I wonder if one of you can help me. I've been using the DSP/BIOS binary semaphores with a C5504 and I've found that when I look at the semaphore count in the code composer ROV window there is often a count that isn't 0 or 1. Sometimes the count can be really huge or even negative. I would expect this with a counting semaphore (unfortunately it seems that the DSP/BIOS counting semaphores don't use saturation logic) but I am DEFINITELY using a binary semaphore. Please see the code fragment below:
Tx interrupt handler:
/* Post the semaphore so that the serial Tx task can run. */ SEM_postBinary(transmitCompleteSemaphore);
/* Wait until there is a free transmit slot. */ (void)SEM_pendBinary(transmitCompleteSemaphore, SYS_FOREVER);
Has anyone seen this problem before? Also, has anyone dealt with the counting semaphores issue where there seems to be wraparound? Any help would be greatly appreciated.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.