Other Parts Discussed in Thread: BLE-STACK, CC2540
Hi,
Is there any sample code to show how the uart work in BLE-stack v1.3?
I tried to read the data send through uart, and then send to Btool. But the data is always 0 in Btool, whatever I sent in uart. (I am sure that the ble transmit part works properly.)
I have tried to define the register by hand and read the U0DBUF directly. or using HAL_UART, but neither works.
i have pasted my test code on another post (http://e2e.ti.com/support/low_power_rf/f/538/p/251738/883793.aspx#883793).
So does anyone has successfully used cc2540 to read uart signal by using BLE-stack v1.3, and could kindly help me with it?
Thanks a lot!
By the way, I have tried to read the project Serialapp, but i did not find the way it does to read data from uart and then send to ble. what's more, when i try to compile it, a error comes out, says
"Error[Pe020]: identifier "HCI_ProcessEvent" is undefined D:\Texas Instruments\BLE-CC254x-1.3\Projects\ble\SerialApp\Source\OSAL_SerialAppPeripheral.c 90"