element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
ZedBoard Hardware Design vivado 2014.4 lab8 error :../src/main.c:61:38: error: 'XPAR_FABRIC_PWM_W_INT_0_INTERRUPT_OUT_INTR' undeclared
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 4 replies
  • Subscribers 360 subscribers
  • Views 565 views
  • Users 0 members are here
Related

vivado 2014.4 lab8 error :../src/main.c:61:38: error: 'XPAR_FABRIC_PWM_W_INT_0_INTERRUPT_OUT_INTR' undeclared

e14 Contributor
e14 Contributor over 11 years ago

Hi

I was exactly doing the instructions in lab 8 then I faced error below:

../src/main.c: In function 'SetupInterruptSystem':
../src/main.c:61:38: error: 'XPAR_FABRIC_PWM_W_INT_0_INTERRUPT_OUT_INTR' undeclared (first use in this function)
#define INTC_PWM_INTERRUPT_ID        XPAR_FABRIC_PWM_W_INT_0_INTERRUPT_OUT_INTR
                                      ^
../src/main.c:128:50: note: in expansion of macro 'INTC_PWM_INTERRUPT_ID'
  XScuGic_SetPriorityTriggerType(IntcInstancePtr, INTC_PWM_INTERRUPT_ID
.
.
.



  • Sign in to reply
  • Cancel
  • zedhed
    0 zedhed over 11 years ago

    Hi nariman_nsi,

    That lab was originally developed in 2013.3 so the error that you report likely has somethign to do with a change in the tools to version 2014.4 of Vivado.  Specifically, the way that the interrupt number is named during the creation of the BSP may be different now.

    Take a look in the BSP project for the application where you are seeing the error.  Within the BSP you should find a folder which contains the includes which describe the hardware platform settings to your C application.

    Take a look in the hardware parameters file ps7_cortexa9_0/include/xparameters.h and see if you can find the interrupt definition (should be similarly named to XPAR_FABRIC_PWM_W_INT_0_INTERRUPT_OUT_INTR) and then adjust the definition line in your main.c to match the new definition:

    #define INTC_PWM_INTERRUPT_ID <name of interrupt that you find in xparameters.h>

    If you cannot find an interrupt definition within xparameters.h, go back and double check your hardware platform from Lab 7 to make sure that the interrupt was connected and enabled properly.

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 11 years ago in reply to zedhed

    I did what you said and it worked
    thank you

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 10 years ago

    Hello, 

    Same error on 2015.3.   Took your advice and, yes, you make the #define non-empty it compiles.  Is it the correct define though?

    I changed it to

    #define INTC_PWM_INTERRUPT_IDt       XPAR_PWM_W_INT_0_DEVICE_ID

    which is '0' - is this correct (there are no other interrupts in the system)?

    What was the original?

    Thanks, ~Tom

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 10 years ago

    Hi,

    The correct solution is please update(replace) the IPs with new IP, i mean to say except PWM controller change replace all the IPs with new IPs(AXI BRAM CONTROLLER and ZYNQ processing system is mandatory to change ). Then u will find this signal (#define XPAR_FABRIC_PWM_W_INT_0_INTERRUPT_OUT_INTR 61) in xparameters.h

    Thank u

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube