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
Using Xilinx Tools Forum AMP freertos on cpu1 and petalinux 2015.2 on cpu0
  • 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 6 replies
  • Subscribers 335 subscribers
  • Views 790 views
  • Users 0 members are here
Related

AMP freertos on cpu1 and petalinux 2015.2 on cpu0

Former Member
Former Member over 9 years ago

I want to setup AMP with petalinux (2015.2) on cpu0 and freertos on cpu1. UG978 gives an outline to do this, however with an older version of petalinux (2013.10). There where changes in the way to implement petalinux and UG978 was not updated for this.

So I followed the latest xapp1078 (xapp1078_2014.4.zip) for creating a bare-metal application and petalinux AMP.

http://www.wiki.xilinx.com/XAPP1078+Latest+Information

Now I have to replace the bare-metal application in xapp2014s bsp by the one of freertos. What is the correct way to do so? Which bsp for freertos can I use? Can I change the existing bsp (DDR address range ...)?

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 9 years ago

    Hi Andreas,

    You've run into an area of development that is unfortunately dead-ended in favor of another solution, and at present it hasn't evolved to the point where there are well documented reference designs to guide you (at least, not that I've seen to date).  The core of what is presented in XAPP978 has been standardized in a new open source development project called OpenAMP.  If you wish to transition to this developing technology, for implementing with Xilinx hardware I'd suggest browsing the Xilinx community forum on the topic:

    https://forums.xilinx.com/t5/OpenAMP/bd-p/openamp

    Having said that, I don't believe it is impossible to update the 2013.10 solution to the current release, but it would be a slow process dealing with changes to the hardware files, the underlying drivers, changes to the Linux kernel and changes to the FreeRTOS implementation.  And in the end if you manage to get it working it is most likely a branch that will dead-end due to the migration to OpenAMP.   

    OpenAMP will be a key technology moving forward to the next-generation Xilinx devices, so I expect it will be around and supported for some time long term.  But at present it is in the expert-adoption phase.

    Ron

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

    Thank you Ron. This is a good information. I found the github repository of openAMP:
    https://github.com/OpenAMP/open-amp

    OpenAMP framework supports bare-metal applications as master (though linux still may be chosen as master), which sounds promissing. Also other kernels which support remoteproc seem to be supported by openAMP.

    Would recommend to switch back to petalinux 2013.10 for now and use the old flow (UG978)? xapp1078 uses petalinux 2015.2 (which uses a different way to create BSP by petalinux-create -t project -s <path to BSP>).

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

    Yes, if you want to get an AMP solution working quickly, the files pointed to from the latest update of UG978 work as described.  That solution requires a Linux master.

    Ron

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

    I tested the workflow of ug978, however i got an error while creating the PetaLinux BSP. The SDK Log sais:

    18:02:13 ERRORt: (XSDB Server)ERROR: [Hsi 55-1545] Problem running tcl command ::sw_petalinux_v2_00_a::petalinux_drc : no such variable

    I am using vivado 2015.3 and petalinux 2013.10. What is the reason for this error? Am I supposed to use an older version of vivado to make this example work?

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

    18:02:13 ERRORt: (XSDB Server)ERROR: [Hsi 55-1545] Problem running tcl command ::sw_petalinux_v2_00_a::petalinux_drc : no such variable
        (read trace on "env(XILINX_EDK)")
        invoked from within
    "append path " $env(XILINX_EDK)/sw/lib/bsp/ ""
        (procedure "get_path" line 90)
        invoked from within
    "get_path"
        (procedure "::sw_petalinux_v2_00_a::petalinux_drc" line 10)
        invoked from within
    "::sw_petalinux_v2_00_a::petalinux_drc petalinux"

    18:02:13 ERRORt: (XSDB Server)ERROR: [Hsi 55-1440] Error(s) while running DRCs.

    18:02:13 ERRORt: (XSDB Server)ERROR: [Hsi 55-1450] Error: running generate_bsp.

    18:02:13 ERRORt: Error generating bsp sources: Failed in generating sources
    18:02:13 ERRORt: Failed to generate sources for BSP project petalinux_bsp_amp
    org.eclipse.core.runtime.CoreException: Internal error occurred while generating bsp sources. Please check the SDK Log view for further details.
    tat com.xilinx.sdk.sw.ui.handlers.RegenBspSourcesHandler.internalGenerateBsp(RegenBspSourcesHandler.java:178)
    tat com.xilinx.sdk.sw.ui.handlers.RegenBspSourcesHandler.access$2(RegenBspSourcesHandler.java:163)
    tat com.xilinx.sdk.sw.ui.handlers.RegenBspSourcesHandler$1$1.run(RegenBspSourcesHandler.java:131)
    tat org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
    tat com.xilinx.sdk.sw.ui.handlers.RegenBspSourcesHandler$1.run(RegenBspSourcesHandler.java:135)
    tat org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

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

    PetaLinux and other Xilinx tools must be version matched to ensure correct operation.  Sometimes you can use them together if they are close in version (like PetaLinux 2015.2 with Vivado/SDK 2015.3), but it's always best to stick to a match set of tools to avoid these kinds of problems.

    Ron

    • 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