Tool/software: TI-RTOS
Hello:
I'm seeing a similar issue with semaphore delay as mentioned in this post https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/t/607008?tisearch=e2e-quicksearch&keymatch=Semaphore Delay
In our application a radio waits to receive a message and then transmits a reply. Using a logic analyzer we are currently measuring a 360 microsecond gap between receive and transmit. 70 of those microseconds are for the semaphore to trigger. My first thought was there's power policy code going on so I disabled all aspects of the power policy but no joy.
Below is the breakdown of the rx/tx gap time. Just wondering if those times are in the ballpark and if there is anything I can do about them? It doesn't appear I can use command chaining to save time because the receive message has to be interpreted. Not unless I can chain a cancel command with a transmit? Not using a semaphore saves 70 uS but would prefer to use it. Any suggestions?
Gap Time
semaphore: ~70 uS
RF_getRssi: ~20 uS
RF_cancelCmd: ~110 uS
my code: ~20 uS
RF_runCmd(Transmit): ~140 uS.