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
Path to Programmable
  • Challenges & Projects
  • Design Challenges
  • Path to Programmable
  • More
  • Cancel
Path to Programmable
Blog Path to Programmable - The final two lessons! SW labs 10 and 11
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: aspork42
  • Date Created: 7 Jan 2019 5:59 AM Date Created
  • Views 654 views
  • Likes 3 likes
  • Comments 2 comments
  • htu21d
  • te
  • avnet
  • xilinx
  • pmod
Related
Recommended

Path to Programmable - The final two lessons! SW labs 10 and 11

aspork42
aspork42
7 Jan 2019

This blog will cover the final two lessons in the Speedway Series for Software on the MiniZed. We'll talk about the built-in libraries and go through using the PMOD headers.

 

About:

Through Avnet, Xilinx and Element14, a training program to learn about the Zynq 7000 platform which is System On Chip combining an FPGA with an ARM processor. This comes to the students as complete development board packed with goodies like a wireless chip from MuRata (BT/BTLE/WIFI), 8GB Flash memory, onboard RAM, USB to JTAG (JTAG programmable over USB), Arduino-style headers (3.3V compatible only), Microphone, Bi-Color LED, and two additional expansion ports.

 

See all blog posts for this training here.

 

Lab 10 - Xilinix libraries

We have used these a little and talked about them in previous lessons. Xilinx provides lots of libraries, starter code, and examples for various use cases. Some System libraries include:

- XILmfs - Xilinx Memory File System

- LWIP140 - Networking - TCP/IP

- XILFLASH - Parallel Flash Common Flash Interface (CFI)

-XILisf - Xilinx In-System Serial Flash

 

In the lab, we will save a system setting to Flash so it is non-volatile.

One difference in this project is that we create a new Board Support Package instead of using the existing as shown below. This is because we are adding a new library that isn't needed in any other BSPs that we already have available. Remember that everything in this workspace is still built on the same hardware file (HDL) from Vivado; we are just adding different support on top of that for our software application.

image

 

The new project and BSP build and we can see them in the Project Explorer:

image

We program the FPGA then launch the new app which we have imported from the sample code. PuTTY gives us a nice ASCII image to look at when the program runs:

image

 

We were then able to read and write the MAC address on the board using this command line interface. Interestingly, the text input is not exactly filtering and sets invalid octects to 00 and doesn't say anything. But as a demo program, this is fine.

image

 

That's it for Lab 10 - we have used a library in our project and can use it to read and write to Flash (non-volatile) memory!

 

Lab 11 - TE PMOD Temperature and Humidity sensor

This lab covers using an I2C sensor on our PMOD headers to read data from. In this case, the target device is a TE Temperature and Humidity sensor. This will be good practice for me as my project will be very similar in the need to read from I2C and do something with the values.

 

For starting, we are again reminded that we can view the .mss file of the board support package to reach the implemented libraries and their documentation.

image

 

We then create a blank application and import source files from the training directory.

image

A math library is added to the Build Settings. It is called (cryptically) "M". This allows the application to build properly.

 

We program the bitstream to the MiniZed, then launch the program. From the console window (PuTTY), we can see a new interface with prompts for each of the functions in this demo program. Since I don't have the actual PMOD sensor, I get appropriate "Transfer Error" messages for every request.

 

 

That concludes the test lessons! I'm reviewing the code for Lab 11 as noted since it applies directly to my project for this training.

 

- James

  • Sign in to reply

Top Comments

  • aspork42
    aspork42 over 6 years ago in reply to genebren +1
    I don't really feel like I learned too much about the PL side of things from this training. As per the block digram, the PS is really the core of the system since it is required (you can't have stand-alone…
Parents
  • genebren
    genebren over 6 years ago

    Nice update on your journey to programmable.  Looking from the outside, I get the feeling that most of the work was focused on the internal processor and necessary support 'glue logic'.  Did you feel that you learned much about the programmable logic?

     

    Thanks for sharing your journey and good luck on your project!

    Gene 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • aspork42
    aspork42 over 6 years ago in reply to genebren

    I don't really feel like I learned too much about the PL side of things from this training. As per the block digram, the PS is really the core of the system since it is required (you can't have stand-alone FPGA projects without it) and most the outside world peripherals (SPI, I2C (non-AXI), Ethernet, USB, Flash memory) go through it.

     

    image

     

    I've been working hard the past few days to get my project done and really struggling to break the surface.

     

    I think that the training was great for someone who is already familar with working on FPGAs and embedded hardware; but there is a pretty big learning curve. Some of the first hardware lessons are for setting minute clock delays on individual lines going to the RAM. That's some pretty grizzly stuff for beginners.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • aspork42
    aspork42 over 6 years ago in reply to genebren

    I don't really feel like I learned too much about the PL side of things from this training. As per the block digram, the PS is really the core of the system since it is required (you can't have stand-alone FPGA projects without it) and most the outside world peripherals (SPI, I2C (non-AXI), Ethernet, USB, Flash memory) go through it.

     

    image

     

    I've been working hard the past few days to get my project done and really struggling to break the surface.

     

    I think that the training was great for someone who is already familar with working on FPGAs and embedded hardware; but there is a pretty big learning curve. Some of the first hardware lessons are for setting minute clock delays on individual lines going to the RAM. That's some pretty grizzly stuff for beginners.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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