Artemis Development on Arm® Mbed™ OS (Beta) a learn.sparkfun.com tutorial

Available online at: http://sfe.io/t1297

Contents

Get a Jump on the Release

With the latest Artemis DK, board, we now offer full Bluetooth support within the Arduino IDE and development with Arm® Mbed™ OS. While we have worked tirelessly to get the Artemis module supported in the next Mbed™ OS release, the next release isn't slated until after the Artemis DK becomes available to the public. Therefore, this post will provide users with a jump start for developing with Mbed™ Studio, prior to the next release (in a beta of sorts), by utilizing our fork of Mbed™ OS.

mbed os logo

In case you missed it, check out our livestream demonstration with the Mbed™ team:

Users may need to watch the video on YouTube.

Clone the Fork

Users will first need to clone our fork of Mbed™ OS from the ambiq-apollo3-dev branch of the GitHub repository. Feel free to use the method you are most familiar with.

Note: For users who need a little more direction, install the GitHub desktop application and register a GitHub account. Once an account has been created and the application has been installed, open the application and log in.

From the GitHub desktop application, clone the sparkfun/mbed-os-ambiq-apollo3 repository (please note the location of the repository on the computer, it will be utilized later.). Once the repository has been cloned, pull the ambiq-apollo3-dev branch.

cloning the fork
Cloning the our fork of Mbed™ OS from the ambiq-apollo3-dev branch of the GitHub repository with the GitHub desktop application. (Click to enlarge)

Install Mbed™ Studio

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

Go to Installation Instructions

Project Setup

Once users have installed Mbed™ Studio, the fun begins! First, open Mbed™ Studio and create a new project.

Configure Build Target and Profile

A build target tells Mbed™ Studio how to build Mbed™ OS so that it matches your hardware.

The options for selecting a target are:

manage custom target
Click the Manage Custom Target icon.
configuring settings
Selecting the custom target options.

Programming the Artemis DK

This method will be utilized for an Artemis board with a DAPLink interface chip, like the Artemis DK. The process requires building the project in Mbed™ Studio. Once the .bin file is generated, Mbed™ Studio automatically loads the file onto the mass storage device for the board to program the Artemis module.

programming target

Start Something

Now its time to make your own project! If you want a starting point for some more examples check out the Mbed API or try out some of the BLE examples.

start something

Build and Flashing other Artemis Boards

Development boards that utilize a WCH CH340C or CH340C Uart-to-serial chip will be programmed using the Ambiq Secure Bootloader (ASB). However, users will need to build the project, first, to utilize the required .bin file.

Build Project

file location

ASB Upload

Resources and Going Further

For more on the Artemis modules and Mbed™ OS, check out the links below:


learn.sparkfun.com | CC BY-SA 3.0 | SparkFun Electronics | Niwot, Colorado