05-31-2019 04:00 PM
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.
06-04-2019 05:50 AM - edited 06-04-2019 05:54 AM
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.
06-02-2019 06:30 AM
The UART pins go to external ports. The S_AXI bus needs to be connected to an AXI master port M_AXI.
06-03-2019 10:12 AM
06-04-2019 04:08 AM
A regular AXI master port, not an AXI stream. What on your FPGA needs to receive or send data through the UART?
06-04-2019 05:50 AM - edited 06-04-2019 05:54 AM
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.
06-04-2019 05:19 PM
I do in this form.
But I have other problem.
When i write de program in C in SDK, i have a 3 error.
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;
}
06-04-2019 05:23 PM
Connet microblaze
06-04-2019 05:24 PM