Question

Posted (edited)

Hi. I want to read the switch with microblaze using nexys4 and the example input_demo.c of ip repository.  Give me this error. Why?......

 

Hi Again. I can do to run my design but the input no change.

 

 

TeraTerm.JPG

PmodSW.pdf main.c

Edited by federicopy

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @federicopy,

Welcome to the Digilent Forums!

I was able to get the Pmod SWT working with VIvado 2019.1 on JA with the Nexys 4. 

Looking at your block design it looks like you are altering the board files.  I would suggest getting the project working before altering any of the board file settings. 

I have attach screen shots of most of the process in vivado, sdk and tera term output. Your main.c is altering the frequency? The  GPIO_begin function in your main.c is setting the pins for output instead of input.  You should be using 0xFF instead of 0x00. You can see this by looking at the GPIO_begin function in the PmodGPIO.c and how we call the GPIO_begin function in the two examples here.

best regards,

Jon

 

image.png

image.png

 

image.png

image.png

 

 

image.png

image.png

 

Make sure to set the reset type to active low.

 

image.png

image.png

image.png

image.png

image.png

image.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