cw2636

PMODESP32 Initialize

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now