Part Number: AMIC110
Other Parts Discussed in Thread: TMDXICE110
Hi,
I am using AMIC110, configured as EtherCAT Slave, full stack generated by SSC Tool.
Now I need to enable UART and need to recieve data though UART. what ever the data i receive through UART should be loaded on to the Ethercat Frame.
But the problem is when i configure UART With below configuration the program is getting stuck at UART_open(...) function, why?
Is there any thing i have did wrong? what else i need to do?
Can u share me the sequence of steps i need to take care to configure UART.......
//***********************************************************************************************************************//
#define UART_INSTANCE 0
UART_HwAttrs uart_cfg;
Board_init(BOARD_INIT_PINMUX_CONFIG | BOARD_INIT_MODULE_CLOCK | BOARD_INIT_ICSS_PINMUX | BOARD_INIT_UART_STDIO);
UART_socGetInitCfg(UART_INSTANCE, &uart_cfg);
UART_socSetInitCfg(UART_INSTANCE, &uart_cfg);
UART_init();
Board_setDigOutput(0x20);
params.baudRate = 115200;
params.writeDataMode = UART_DATA_BINARY;
params.readDataMode = UART_DATA_BINARY;
params.readReturnMode = UART_RETURN_FULL;
params.readEcho = UART_ECHO_OFF;
UART_Params_init(¶ms);
handle = UART_open(UART_INSTANCE, ¶ms); // Stuck here...
if (!handle) {
//System_printf("UART did not open");
}
const unsigned char hello[] = "Hello World\n";
int32_t ret;
ret = UART_write(handle, hello, sizeof(hello)); //..
//*********************************************************************************************************************//
Please reply as soon as possible....
