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
Enchanted Objects
  • Challenges & Projects
  • Design Challenges
  • Enchanted Objects
  • More
  • Cancel
Enchanted Objects
Blog Review 2: Atmel SMART SAMA5D4 Xplained Ultra - Building the Libraries from Source
  • 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: Jan Cumps
  • Date Created: 1 Apr 2015 1:24 PM Date Created
  • Views 1330 views
  • Likes 3 likes
  • Comments 4 comments
  • sama5d4
  • enchanted_player
  • enchanted_objects
  • arm_cortex
  • toolchain
  • atmel
  • xplained
Related
Recommended

Review 2: Atmel SMART SAMA5D4 Xplained Ultra - Building the Libraries from Source

Jan Cumps
Jan Cumps
1 Apr 2015

I've blogged about my first steps with the kit, Review 1: Unboxing and First Steps.

 

image

 

Since then, I've been trying to set up a tool chain that can build the SAMA5D4X Explained Software Package from source (yes, it took me 9 days to get to this stage - tough board to get started with).

 

image

 

I tried several tool chains and approaches. I'm not going to elaborate on the things that I didn't get working.

Here is what works for me on a Windows 8.1 64 install.

 

The Source

 

I downloaded the library and example sources from SAMA5D4 Software Package. There's an archive there with the name SAMA5D4 GNU Software Package 1.2 for Xplained board.

There are 3 sections in the package:

  • documentation
  • library sources
  • application sources

The documentation folders describe the libraries and the example applications. There's also an additional text document there that describes how to port the examples to Eclipse.

image

 

tip:
Don't place the sources deep in your directory structure.

I had to shorten the name of libraries\libboard_sama5d4x-Xplained\include\xdma_hardware_interface.h , and adapt the file libraries\libboard_sama5d4x-Xplained\board.h to reflect that name change.

 

The Compiler

 

I've installed GNU Tools for ARM Embedded Processors (version 4.9 2015q1). I used the Windows installer and accepted all defaults.

I followed the install instructions from GNU ARM Eclipse. The install menu contains good info. I paid proper attention to what options to switch off in the installation programs.

 

The IDE

I reuse the Eclipse Luna edition that is running on my PC (Luna Service Release 1 (4.4.1)).

image

The tool chain is available in Eclipse straight away if you follow the instructions from GNU ARM Eclipse.

 

image

 

 

The Additional Build Tools

 

It's a good time to test now if the build process works by following the instructions in documentation\MigrationFromCStoEclipse.

If you don't have a working make installation on your computer, these following steps may be necessary:

Again following the instructions from GNU ARM Eclipse, you install the  GNU Tools for ARM Embedded Processors.

If done right the build tool chain is available in Eclipse.

image

 

 

This would be a good test again to see if you can build a library.

I couldn't. My builds were still failing after this install. See Who has successfully compiled a project of SAMA5D4 GNU Software Package 1.2 for Xplained board on Windows? for details on what was going wrong.

 

I had to additionally add this software package to get it working: GnuWin32.

I picked up this requirement from on Received the Atmel SAMA5D4 Xplained Ultra board! Yay! by  pettitda.

 

It becomes tricky here. Some of the tools appear in both additional build tools packages. You may have to be creative with the different path settings in Eclipse to make this all work.

 

 

With this setup, I could successfully build all libraries from source.

I haven't been able to build one of the examples and load it to the board. That's something for a next post.

  • Sign in to reply

Top Comments

  • Jan Cumps
    Jan Cumps over 10 years ago +3
    I'm going to let this board sleep for at least two weeks. I'm getting tunnel vison - chasing my tail. 10 days of software and toolset troubleshooting, without being able to load one line of self-written…
  • Workshopshed
    Workshopshed over 10 years ago +1
    Great work, hope it provides useful for everyone using this board.
  • Jan Cumps
    Jan Cumps over 9 years ago in reply to Former Member

    nicholas.campbell , I don't have the board (gave it away to a fellow element14 member) or the toolchain anymore.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to Jan Cumps

    Trying to use this board for an engineering design project and setting up the environment is proving challenging. I followed the steps outlined here installing the toolchain, build tools and gnumake 32 for the latest eclipse compiler version. But I'm still getting errors when i try to build the project. Any suggestions or help would be greatly appreciated.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 10 years ago

    I'm going to let this board sleep for at least two weeks.

    I'm getting tunnel vison - chasing my tail.

    10 days of software and toolset troubleshooting, without being able to load one line of self-written code to the board is enough for now.

     

    I'll return to it after a time-out.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 10 years ago

    Great work, hope it provides useful for everyone using this board.

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