cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Contributor
Contributor
958 Views
Registered: ‎06-01-2018

Hi! I need help with UARLITE 2.0. I dont know connect this IP. I reviewed pg147 but it dont say much.

If any know the document or video or something wich help to conncet the UART LITE, i appreciate your help.

Regards.

UART.jpg

 

 

0 Kudos
Reply
1 Solution

Accepted Solutions
Voyager
Voyager
883 Views
Registered: ‎08-16-2018

@rica.soles 

You are using an AXI UART. AXI is typically used with microprocessor systems, so you will need a Microblaze with an AXI master port and an AXI interconnect block, like this. You will still need a clock, a processor reset system, etc. 

 

Untitled picture.png

View solution in original post

7 Replies
918 Views
Registered: ‎06-21-2017

The UART pins go to external ports.  The S_AXI bus needs to be connected to an AXI master port M_AXI. 

Contributor
Contributor
904 Views
Registered: ‎06-01-2018
What kind of master port M_AXI?
0 Kudos
Reply
891 Views
Registered: ‎06-21-2017

A regular AXI master port, not an AXI stream.  What on your FPGA needs to receive or send data through the UART?

0 Kudos
Reply
Voyager
Voyager
884 Views
Registered: ‎08-16-2018

@rica.soles 

You are using an AXI UART. AXI is typically used with microprocessor systems, so you will need a Microblaze with an AXI master port and an AXI interconnect block, like this. You will still need a clock, a processor reset system, etc. 

 

Untitled picture.png

View solution in original post

Contributor
Contributor
875 Views
Registered: ‎06-01-2018

I do in this form.

UART2.jpg

But I have other problem.

When i write de program in C in SDK, i have a 3 error.

SDK.jpg

I think it's something from my program.

//Bibliotecas:

#include <stdio.h>
#include "platform.h"
#include "xil_printf.h"
#include "xparameters.h"
#include "xgpio.h"
#include "xuartlite.h"

//variables
XGpio Gpios;
XUartLite Uart;

int main (){
int status; //variable para inicializacion de uart y gpios
u16 num; //variable donde se guardara el numero a leer
init_platform();

//inicializacion del UART:
status = XUartLite_Initialize(&Uart, XPAR_AXI_UARTLITE_0_DEVICE_ID);
if(status != XST_SUCCESS){
print("Uart failed to initialize\r\n");
return XST_FAILURE;
}

//inicializacion de GPIOS:
status = XGpio_Initialize(&Gpios, XPAR_AXI_GPIO_0_DEVICE_ID);
if(status != XST_SUCCESS){
print("GPIOs failed to initialize\r\n");
return XST_FAILURE;
}

XGpio_SetDataDirection(&Gpios, 1, 0x0000); //Define la direccion in/out de las
//señales para el canal (0x000 para la salida)
XGpio_SetDataDirection(&Gpios, 2, 0xFFFF);//Define la direccion in/out de las
//señales para el canal (0xFFF para entrada)

while(1){
print("Ingresa 4 digitos hexadecimales\n\r"); //Se solicita entrada de dato
num = XGpio_DiscreteRead(&Gpios, 2); //lee dato de los deep Switches del FPGA
xil_printf("No. registrado = %x\n\r",num); //Se despliega dato en consola
XGpio_DiscreteWrite(&Gpios, 1, num); //Envia dato a los leds del FPGA

}
cleanup_platform();
return 0;
}

0 Kudos
Reply
Contributor
Contributor
873 Views
Registered: ‎06-01-2018

Connet microblaze

0 Kudos
Reply
Contributor
Contributor
872 Views
Registered: ‎06-01-2018
connect microblaze
0 Kudos
Reply