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.

UART / callback delay

Other Parts Discussed in Thread: CC2540

Hello,

I'm newbie in CC2540, HAL and OSAL development.

I've just understand callback and test a little code for using UART callback :

When callback triggered, I read a byte with UART_RX and send it just after with UART_TX @115200bauds.

 

This test is OK, but there is a problem : the delay between RX and TX char is about 6,3ms (My final prototype will need to follow 5bytes @512Samples/s, so with actual delay, I will lost a lot of packets...).

I've tried a lot things to reduce this delay (UART config parameter, HAL_UART_DMA instead of ISR, stop cb_task (cbTMP112, cbLIS, cbBLS and cbDEMO), stop POWER_SAVING) but delay is always the same (except in DMA mode : about 7,4ms).

 

Have you an explanation?

 

Best regards,

 

Hubert