Forum Discussion

syuanyou's avatar
syuanyou
Icon for New Contributor rankNew Contributor
3 years ago

Using ghrd.v setting GPIO question

Hi,

I am using ghrd.v to setting project gpio for a while. It work correct before, but someday I found I couldn't replace gpio. For example, I tried to replace a pin from gpio[2] to gpio[19], compile is fine, but it still maintain gpio[2] actually. I use quartus 21.1 lite and my board is DE0 board with cyclone V 5CSEMA4U23C6N. How do I fix the problem?

syuanyou

7 Replies

  • sstrell's avatar
    sstrell
    Icon for Super Contributor rankSuper Contributor

    Can you show your code? Did you make the change in the Pin Planner? More details needed.

  • syuanyou's avatar
    syuanyou
    Icon for New Contributor rankNew Contributor

    I don't change the Pin Planner. I change the conduct gpio place in ghrd and compile like the graph below I changing GPIO_1[2] to GPIO_1[19], but when execute the code in board,it still maintain old pin in board. I tried the IP upgrade but it don't fix the problem.

  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi syuanyou,


    Do you still need help on this?

    May I know did you check with any other GPIO pins which having signals which you can observe?



    Thanks.

    Regards,

    Aik Eu


  • syuanyou's avatar
    syuanyou
    Icon for New Contributor rankNew Contributor

    Hi,

    The problem still exist. The other GPIO pins have the same problem. I replaced the GPIO in the pin planner with a new variable and reconnected, but it didn't improve the issue. I also tested it using SignalTap, and the GPIO operation on SignalTap is working correctly, just like the settings in GHRD.

    Thank you

  • syuanyou's avatar
    syuanyou
    Icon for New Contributor rankNew Contributor

    Hi,

    I found the issue. the path to the .sof file in the programmer was incorrectly set to the previous file. After correcting it, everything is working fine now.

    Thank you.

  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi syuanyou,


    Glad to hear that the issue has been resolved. I now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.


    Thanks.

    Regards,

    Aik Eu