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
Microchip
  • Products
  • Manufacturers
  • Microchip
  • More
  • Cancel
Microchip
Forum bare metal C on SAMA5D4 Xplained Ultra with Jlink, which IDE?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Microchip to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 2 replies
  • Subscribers 17 subscribers
  • Views 502 views
  • Users 0 members are here
Related

bare metal C on SAMA5D4 Xplained Ultra with Jlink, which IDE?

Microbit
Microbit over 1 year ago

After running Linux on my SAMA5D4 Xplained Ultra board, I thought I'd put the JTAG to use and explore writing and debugging bare metal C on it.

Ok, repgramming the EDBG for Jlink OB was easy..., using a fav IDE seems major headache :

- uVision 5 appears to not supprt SAMA5 (then again, it's poor SW anyway)

- Microchip "Studio" has no supprt either? What?

- Segger Embedded Studio (my fav CrossWorks spawn) talks with the Jlink EDBG fine but gives insane cryptic errors when I try to build a Cortex A5 target, this is nuts.

  Further, SEB doesn't seem to properly support SAMA5 either?

Is there a more sane way to do this?

PS : I detest Eclipse

  • Sign in to reply
  • Cancel
Parents
  • shabaz
    shabaz over 1 year ago

    From what I can tell, it's an applications processor, so it's unusual to run applications bare metal. That being said, you could write bare metal for it, and build with GCC, either cross-compiled (a bit awkward to set up initially, but there will be guides on it, just not specifically for that processor), or even natively, i.e. compile on itself, which is often the far easier approach at least for quick experiments. Developers would normally use tools like Visual Studio Code (VS Code), and that can kick off the build process (may take some configuration), or the build can be done from the command line.

    I would say, when it comes to bare metal coding, it may well be quite an uphill task to set up the processor (quite detailed examination of the datasheet would be needed, to study what registers initially need to be configured, which of course usually isn't needed, since that would be part of the boot process for the OS, if it were not a bare-metal project). 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • shabaz
    shabaz over 1 year ago

    From what I can tell, it's an applications processor, so it's unusual to run applications bare metal. That being said, you could write bare metal for it, and build with GCC, either cross-compiled (a bit awkward to set up initially, but there will be guides on it, just not specifically for that processor), or even natively, i.e. compile on itself, which is often the far easier approach at least for quick experiments. Developers would normally use tools like Visual Studio Code (VS Code), and that can kick off the build process (may take some configuration), or the build can be done from the command line.

    I would say, when it comes to bare metal coding, it may well be quite an uphill task to set up the processor (quite detailed examination of the datasheet would be needed, to study what registers initially need to be configured, which of course usually isn't needed, since that would be part of the boot process for the OS, if it were not a bare-metal project). 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Microbit
    Microbit over 1 year ago in reply to shabaz

    Thanks Shabaz for taking the trouble in reviewing and replying. Sorry for the delay, I got no notification at all.
    Normally I wouldn't be too worried about it as I'm not much into "ROMless". But I bought the SAMA5D4 xplained really cheap during Ele 14's "firesale"
    and wanted to do something funky with it.... But I agree, it might be too ambitous in setting up resources.... :-) Sill would be fun to be tenacious for a change :-) 

    Thanks!

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