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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MicroZed Hardware Design AXI Quad SPI not working
  • 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 2 replies
  • Subscribers 312 subscribers
  • Views 2554 views
  • Users 0 members are here
Related

AXI Quad SPI not working

Former Member
Former Member over 8 years ago

I am using Vivado 2016.2 and am trying to get an AXI Quad SPI device that I have added in PL to work.

So far all I am trying to do is read the registers to ensure that I see the default power-on values.  I am reading the control, status, and slave select registers and they all read 0x00000000.  I am expecting control=0x180, status=0x0a5, and slave select=0xFFFF.  If I write anything to these registers they still read back 0x00000000.

To access these registers I am performing direct memory-mapped reads, with the device base address:
#define XPAR_AXI_QUAD_SPI_0_BASEADDR 0x41E00000
and offsets of 0x60, 0x64, and 0x70 for the three registers.

I have also tried to run the self-test function on it, but it hangs when I do that.

I have configured the IP for standard SPI, with these selections:
Enable XIP Mode - deselected
Enable Performance Mode - deselected
Mode - standard
Transaction Width - 8
Frequency Ratio - 16x1
Enable Master Mode - selected
Enable FIFO - selected
FIFO depth - 16
Enable STARTUP Primitive - deselected
Share the un-used startup ports - deselected

When placing the IP block on the diagram, I connected the ext_spi_clk to s_axi_aclk which is connected to FCLK_CLK0 on the ZYNQ block.  This clock is configured for 100 MHz.

Am I missing something in startup or configuration?  It seems like this should be pretty simple.

  • Sign in to reply
  • Cancel
  • jafoste4
    0 jafoste4 over 8 years ago

    Hello Cpl,

    My first thoughts are you may be having an addressing issue. First start by validating the address you are trying to talk to. After you validate that your address is correct, I would suggest that you add somthing like a AXI-GPIO, which you then can set to whatever you want and read it back. This will help you track down the issues you are having.

    --Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 8 years ago

    Hello CPL,

    I spoke with a few colleagues and they had some good suggestions. We have a MicroZed IIOT Kit reference design that utilizes a SPI Controller. You may find sucess in comparing it to your own design.

    http://zedboard.com/support/design/13591/116

    Also another thing to be careful about is the Clock Polarity and Clock Phase reflected in the SPI controller.

    Hope this helps!

    --Josh

    • 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 © 2025 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.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube