element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 [PP-14] Lab 4 - Developing software application on running on Zynq
  • 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: kk99
  • Date Created: 11 Jan 2019 11:15 PM Date Created
  • Views 740 views
  • Likes 2 likes
  • Comments 0 comments
  • path to programmable
  • fpga
  • avnet minized
  • minized
Related
Recommended

[PP-14] Lab 4 - Developing software application on running on Zynq

kk99
kk99
11 Jan 2019

In this lab we will learn how to add a new software application to SDK based on examples with Hello World and Memory/Peripheral tests applications.

 

1. Start of development based on example code

Please launch Xilinx SDK and choose: File -> New -> Application Project. Please enter the project name and use exiting Standalone BSP.

image

When you press Next you will see a list of available templates. In this lab we will use a Empty Application template. By choosing other template like: Memory or Peripheral Tests we could easily create application to test hardware platform.

image

In project explorer you will able to see following folders:
- Hello_World - which contains sources of C application,

- standalone_bsp_0 - which contains board support package,

- ZynqHW - which contains ARM embedded hardware.

 

In Hello_World folder in folder src there is file: lscript.ld which is a default linker script. Now we will add a our own source file by selecting option New -> Source File from menu displayed after right-click on src folder. You could enter following name for source file: hello_zynq.c.

By default SDK will try to build sources automatically. In this case build will fail because there is no main() function in this source file. To fix this we will use a example code which prints "Hello World" message on UART. To do this please open system.mss file and browse down under the "Peripheral Drivers". Please find the "ps7_uart_1" and choose option Import Examples. Please select xuartps_hello_world_example.c and press twice on it. The source code will open in new window. We will be able to copy this example to our source file hello_zynq.c.

image

When we press save then the application will automatically builds. You could see a report with information about application size. By choosing Hello_World -> src -> lscript.ld you could get information about Available Memory Regions.

image

There are following memory regions:
- axi_bram_ctrl_0_Mem0 - is is a block RAM located in the programmable logic,

- ps7_ddr_0 - it is a DDR3L memory,

- ps7_qspi_linear_0 - it is a QSPI,

- ps7_ram_0 - it is a 192 KB of on-chip RAM,

- ps7_ram_1 - it is a 64 KB of on-chip RAM.

Second summary contains information about Stack and Heaps sizes.

We could edit the source of linker script by switching to Source tab. Additionally we could generate a completely new linker script by choosing option "Generate Linker Script" from Project Explorer. In wizard we could configure all these parameters.

image

  • Sign in to reply
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