Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hello ,
For our project we are using TDA2px-evm in sysbios all configuration and PSDK3.03.
In one of the requirement, I need to read data over UART interface from GPS device.
To simulate and test the device driver, i am using UART1 instance (same as used for console i/o) and to read over uart , i am using the GIO_API
GIO_read(uartRxHandle, &local_buf, &bufferLength) , where uartRxHandle -uart handle for uart1, local_buf is local buffer and bufferLenght is data length.
The code is placed at ..\PROCESSOR_SDK_VISION_03_03_00_00/vision_sdk/apps/src/rtos/modules/<device_driver>, following is the code snippet.
GIO_Handle uartRxHandle;
UInt8 local_buf[240] = {0};
size_t bufferLength = (size_t)240;
checkUART4Instance((Void*)&uartRxHandle);
if(uartRxHandle == NULL) {
ret =STATUS_ERRCONFIG;
return ret;
}
while(1) {
if(IOM_COMPLETED == GIO_read(uartRxHandle, &local_buf, &bufferLength))
{
But when I execute the same, I get following exception,
ti.sysbios.io.GIO: line 351: ti.sysbios.io.GIO: line 351: assertion failure: A_badModel: invalid use of API for current I/O model
xdc.runtime.Error.raise: terminating execution
Will you please let me know if I am missing something here.
regards
Hrishikesh