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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development How to run two different task parallely on two standalone processors on Zedboard
  • 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 7 replies
  • Subscribers 329 subscribers
  • Views 498 views
  • Users 0 members are here
Related

How to run two different task parallely on two standalone processors on Zedboard

Former Member
Former Member over 12 years ago

I am new to Zed board.I want to run two different task on two different standalone processors without load any OS on those processors.Like one processor will do sum of two integers and other processor will do multiply two nos. at a same time in Simple C program.suggest me some solution.Thank you.

  • Sign in to reply
  • Cancel
  • ejubenville
    0 ejubenville over 12 years ago

    Take a look at appnote 1079.  It address bare-metal applications running independently on both Cortex A9 processors on the ZC702 development board.  I seem to recall seeing instructions to adapt that example for a ZedBoard.

    http://www.xilinx.com/support/documentation/application_notes/xapp1079-amp-bare-metal-cortex-a9.pdf

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    Also check out the latest information wiki.
    http://www.wiki.xilinx.com/XAPP1079+Latest+Information

    What you want to do is actually very simple. Alot more simple than involving Linux.

    XAPP 1079 involves writing 2 programs though, and putting them on separate cores. Not sure if that's how you want it...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    Thank you.Please help me in the another scenario like sum of two nos. done in first processor and then result should go to another processor and multiplication it with another integer on second processor.
    Example:
    First Processor:result=a + b;
    Second Processor: result1=result*c;
    Can you please how to manage inter processor communication?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    Default OCM (On Chip Memory) locations are 0x00000000 to 0x0002FFFF (low 64kB) as well as 0xFFFF0000 to 0xFFFFFFFF (high 64kB). You can see this in the default linker script (lscript.ld) under ram_0 and ram_1. OCM is common to both processors. So you could store your result in OCM and then both processors could access it. You'll need to explicitly identify what address you want to store your variable at. So do something like this (in both CPU0's and CPU1's source code):

    volatile u32 *result = (volatile u32 *)(0xFFFF0000);
    CPU0: *result = a + b;
    // set flag telling cpu1 that first operation has completed
    CPU1: result1 = *result * c;

    or do something simpler with a #define
    #define RESULT *(volatile u32 *)(0xFFFF0000)
    CPU0: RESULT = a + b;
    // set flag telling cpu1 that first operation has completed
    CPU1: result1 = RESULT * c;

    In both cases, you'll have to have a flag to communicate between the two processors (which will also need to be common to both cores, in OCM), telling each processor when the other has completed its task. If you try and operate on the same memory location with both CPUs at the same time, results will be unpredictable and probably undesirable.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    Thank you.This will be helpful.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    I implemented and run xapp1079 but when I am trying to run it from flash memory,it is not load cpu1 application.Is it possible to run xapp 1079 from flash?
    A application on cpu0 is running from flash but from cpu1 it can't.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Hi,

    CPU 0 willboot up first,then it will awak cpu 1 by SEV

    • 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