This might be a basic question. I have connected a GPS module (gtpa010) tx and rx pins to UART0 port(EMIO pins JA2 and JA4 of JA connectors). Its baud rate is 9600. So i have changed the baudrate to 9600 in the configuration of UART0. So i have created the hardware design, added the constraints for the EMIO pins.
So I have exported the hardware and launched the SDK and created basic program for viewing the serial data coming on UART0. I have attached the program as well. I donno whether it is correct or not. What should i do to view the serial data on PC terminal that has been coming through UART 0.??
int main()
{
XUartPs_Config *Uartpsconfig;
XUartPs myuartps;
int Status;
Question
Sridhar Prasath Aruppukottai Ganesan
Greetings all,
This might be a basic question. I have connected a GPS module (gtpa010) tx and rx pins to UART0 port(EMIO pins JA2 and JA4 of JA connectors). Its baud rate is 9600. So i have changed the baudrate to 9600 in the configuration of UART0. So i have created the hardware design, added the constraints for the EMIO pins.
set_property PACKAGE_PIN AA11 [get_ports UART_0_rxd]
set_property PACKAGE_PIN AA9 [get_ports UART_0_txd]
set_property IOSTANDARD LVCMOS25 [get_ports UART_0_*]
set_property PULLDOWN true [get_ports UART_0_*]
So I have exported the hardware and launched the SDK and created basic program for viewing the serial data coming on UART0. I have attached the program as well. I donno whether it is correct or not. What should i do to view the serial data on PC terminal that has been coming through UART 0.??
int main()
{
XUartPs_Config *Uartpsconfig;
XUartPs myuartps;
int Status;
init_platform();
Uartpsconfig= XUartPs_LookupConfig(XPAR_PS7_UART_0_DEVICE_ID);
XUartPs_CfgInitialize(&myuartps, Uartpsconfig, Uartpsconfig->BaseAddress);
while(1){
Status= XUartPs_SelfTest(&myuartps);
printf("gps data : %d", Status);
cleanup_platform();
return 0;
}
}
This might me wrong .So help me with this
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.