Hi Guys,
I'm using CC2540 with 1.4.0 Stack, transmitting data thru UART using Interrupt.
First problem I see is the transmission is performing in burst, not continuous until the buffer is empty. The number of bytes transmitted is always right.
Even if I declare osal_pwrmgr_device( PWRMGR_ALWAYS_ON ), it looks like the chip always go to sleep while is transmitting. I'm using 115200 bit/s because is the speed where I can send more bytes without errors. When I try to send 16 bytes the first 10 bytes "always" go thru without problem. Then in the next burst, the first 2 bytes are always wrong, following 2 bytes always right, and 2 more bytes wrong. This pattern is constant all the time. If I try to reduce the speed then it became worst.
I already disable the line //HCI_EXT_ClkDivOnHaltCmd( HCI_EXT_ENABLE_CLK_DIVIDE_ON_HALT ); as suggested in the forum.
I'm using Interrupt to Transmit thru the UART.
Any idea how to avoid the chip go to sleep until the buffer is empty?
Thanks in advance for your support.
Cajal