Jump to content

PMODESP32 Initialize


cw2636

Recommended Posts

I am testing the PMODESP32 on xilinx sdk. I created a microblaze on vivado and launch the sdk to test it. Anytime i initialize the pmod it returns a status of 0. I attached my microblaze design below. The code im using is below. Thank you

#include "xparameters.h"
#include "xil_exception.h"
#include "xil_printf.h"
#include "xtmrctr.h"
#include "xintc.h"
#include <xgpio.h>
#include "PmodESP32.h"
#include <xstatus.h>


#define UART_BASEADDRESS XPAR_PMODESP32_0_AXI_LITE_UART_BASEADDR
#define GPIO_BASEADDRESS XPAR_PMODESP32_0_AXI_LITE_GPIO_BASEADDR

PmodESP32 pmod;


int main(void)
{
    int status = 0;
             status = ESP32_Initialize(&pmod, UART_BASEADDRESS, GPIO_BASEADDRESS);
             if (status != XST_SUCCESS) {
                     xil_printf("Tmrctr fast interrupt Example Failed\r\n");
                     return XST_FAILURE;

                 }
}

pmod.png

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...