Jump to content
  • 0

Zybo Z7 (10) Accessing MIO pins through XGpioPs


kadri

Question

Hello
I would like to use the LD4 (MIO 7) in my project. I tried accessing it with XGpioPs, making a simple LED blinking application, but the LED does not blink. My code shows no errors. How can I access LD4 on PS level? Here is also the code I used.

helloworld.c

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @kadri, Welcome to the forums!

XGpioPs_SetOutputEnable accepts a bank number instead of a pin number. Use the following instead:

XGpioPs_SetOutputEnable(&my_Gpio, 0, 1);

Debugging the program shows an assertion firing when you try to step past the SetOutputEnable call. By stepping into this call, it can be seen that the following line is where the assertion occurs:

Xil_AssertVoid(Bank < InstancePtr->MaxBanks);

Thanks,

Arthur

Link to comment
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
×
×
  • Create New...