Part Number: CC1350
Tool/software: Code Composer Studio
Hi,
I am using the default uart emulation example code given in sensor controller .I generated the code from the sensor controller studio and created related files in ccs but i am not able receive or send the data.
// Initialize the Sensor Controller
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);
// Main loop
while (1) {
// Wait for an ALERT callback
Semaphore_pend(Semaphore_handle(&semScTaskAlert), BIOS_WAIT_FOREVER);
// Clear the ALERT interrupt source
scifClearAlertIntSource();
// Echo all characters currently in the RX FIFO
int rxFifoCount = scifUartGetRxFifoCount();
while (rxFifoCount--) {
scifUartTxPutChar((char) scifUartRxGetChar());
}
// Clear the events that triggered this
scifUartClearEvents();
// Acknowledge the alert event
scifAckAlertEvents();
}
}
Is there anything i have to do before i can successful transfer or receive data.