Other Parts Discussed in Thread: CC2650
When I use Sensor Controller Stdio UART Emulator , I can not receive or Transfer any data, why?
First,I used the default example provided by SCS below:
Second, i found the UART Emulator only Provide the function uartEmulator(), and then generate Code and import it to my SimpleProfile Project in CCS,
Third,Init UART below:
scifOsalInit();
scifOsalRegisterCtrlReadyCallback(scCtrlReadyCallback);
scifOsalRegisterTaskAlertCallback(scTaskAlertCallback);
scifInit(&scifDriverSetup);
// Start the UART emulator
scifExecuteTasksOnceNbl(BV(SCIF_UART_EMULATOR_TASK_ID));
// Enable baud rate generation
scifUartSetBaudRate(57600);
// Enable RX (10 idle bit periods required before enabling start bit detection)
scifUartSetRxFifoThr(SCIF_UART_RX_FIFO_MAX_COUNT / 2);
scifUartSetRxTimeout(10 * 2);
scifUartSetRxEnableReqIdleCount(10 * 2);
scifUartRxEnable(1);
// Enable events (half full RX FIFO or 10 bit period timeout
scifUartSetEventMask(BV_SCIF_UART_ALERT_RX_FIFO_ABOVE_THR | BV_SCIF_UART_ALERT_RX_BYTE_TIMEOUT);
after that i still can not receive or transfer any data , is there anything i have to do before i can successful transfer or receive data.
