element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Sparkfun RedBoard Artemis ATP on Arm®︎ Mbed™︎ OS
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: javagoza
  • Date Created: 13 Jun 2021 6:59 PM Date Created
  • Views 1394 views
  • Likes 5 likes
  • Comments 0 comments
  • mbed os 6
  • ambiq
  • sparkfun
  • artemis
  • apollo3
Related
Recommended

Sparkfun RedBoard Artemis ATP on Arm®︎ Mbed™︎ OS

javagoza
javagoza
13 Jun 2021

Summary

This guide will cover the installation of the software required to develop with Sparkfun RedBoard Artemis ATP on the ArmRegistered Mbed Tm operating system.

 

image

 

RedBoard Artemis ATP

The Artemis module has 48 GPIOs and the RedBoard Artemis ATP exposes all pins in a form factor known as Mega. It has the pins labeled as they are assigned on the Apollo3 IC itself.

SparkFun's Artemis module is a Cortex-M4F with BLE 5.0 running up to 96MHz and with power as low as 6uA per MHz (less than 5mW).

The Apollo MCU Family is an ultra-low power, highly integrated microcontroller platform based on Ambiq Micro’s patented Subthreshold Power Optimized Technology (SPOTTm) and designed for battery-powered and portable, mobile devices.

 

Serial and JTAG Programming

The RedBoard Artemis has two methods for programming. The most common is the USB C connector that operates as a USB to serial bridge. By simply pressing 'Upload' in the Arduino IDE or 'make bootload' from the SDK the firmware on Artemis is updated.The RedBoard Artemis uses the CH340C. The driver should automatically install on most operating systems.

The second method is JTAG programming. An unpopulated JTAG footprint is available for more advanced users who need breakpoint level debugging.

 

Serial Wire Debug

Serial Wire Debug (SWD) is really just a modification/implementation of JTAG specifically for ARM processors. SWD puts the 2 pins (SWDIO and SWCLK) on top of the JTAG pins allowing a user to use either JTAG or SWD without the need to breakout more pins.

 

Required Materials

  • RedBoard Artemis ATP
  • USB cable Type CUSB cable Type C
  • J-LINK EDUmminiJ-LINK EDUmmini

 

OS Requirements

 

For this guide we are using Windows 10

 

J-Link Software

First step is to download the J-Link Software. This software is good for updating the firmware on the programmers.

Download Installer and install

https://www.segger.com/downloads/jlink/#J-LinkSoftwareAndDocumentationPack

 

Connect your J-link

 

 

image

 

Go ahead and open the Jlink Configurator and see if your programmer needs an update.

image

 

image

 

 

Clone the  MbedTm OS Fork

We first need to clone our fork of MbedTm OS from the ambiq-apollo3-dev branch of the GitHub repository.

You can use the GitHub desktop application. https://desktop.github.com/

From the GitHub desktop application, clone the sparkfun/mbed-os-ambiq-apollo3 repository.

https://github.com/sparkfun/mbed-os-ambiq-apollo3

Note the location of the repository on the computer.

Once the repository has been cloned, pull the ambiq-apollo3-dev branch.

 

image

 

 

Install MbedTm Studio

Users should install the latest version of MbedTm Studio. Installation instructions can be found here on the MbedTm website. Documentation for MbedTm Studio is also hosted on the MbedTm website.

https://os.mbed.com/docs/mbed-studio/current/installing/installing-mbed-studio.html

 

Blinky example. Project Setup

Open MbedTm Studio and create a new project.

From the menu, select File > New Program....

A New program dialog box should open.

 

image

We'll begin with the Blinky example, from the Example program drop-down list, select in the MBED OS 6 list

 

image

 

For the MbedTm OS Location, select the "Link to an existing shared Mbed OS instance" option

Browse for the location noted earlier, to the ambiq-apollo3-dev branch of our fork of MbedTm OS

 

image

 

image

 

image

 

image

Clean and build the project

image

 

Build Project

Click the Build, hammer icon. This builds Blinky and stops.

Check the build output for the location of the .bin file.

image

 

image

 

image

 

 

Clone the Ambiq Secure Bootloader (ASB) Upload

Development boards that utilize a WCH CH340C or CH340C Uart-to-serial chip will be programmed using the Ambiq Secure Bootloader (ASB).

 

https://github.com/sparkfun/Apollo3_Uploader_ASB

 

Ambiq Secure Bootloader (ASB) documentation

image

 

Example usage:

 

python asb.py --bin "${path to your binary file}.bin" --load-address-blob 0x20000 --magic-num 0xCB -o "${path to your binary file}" --version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -b 115200 -port "{serial.port}" -r 2 -v

 

python asb.py --bin "${path to your binary file}.bin" --load-address-blob 0x20000 --magic-num 0xCB -o "${path to your binary file}"

--version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -b 115200 -port "{serial.port}" -r 2 -v

  • 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