Skip to content


Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

ATS programing on mbed Build Status

Application Design

Hardware: mbed LPC1768

  • CPU: NXP LPC1768 (ARM Cortex-M3 32-bit)
  • Flash ROM: 512 KiB
  • RAM: 32 KiB

Also you could get compatible boards.

Setup environment

Debian GNU/Linux

Install summon-arm-toolchain.

$ git clone
$ apt-get install flex bison libgmp3-dev libmpfr-dev libncurses5-dev \
  libmpc-dev autoconf texinfo build-essential libftdi-dev zlib1g-dev \
  git zlib1g-dev python-yaml
$ cd summon-arm-toolchain/
$ ./summon-arm-toolchain
$ export PATH=$HOME/sat/bin:$PATH

Mac OS X

Install gmp package.

$ brew install gmp

Install GNU toolchain from ARM Cortex-M & Cortex-R processors

$ wget
$ tar xf gcc-arm-none-eabi-4_8-2014q1-20140314-mac.tar.bz2
$ cp -a gcc-arm-none-eabi-4_8-2014q1 /usr/local/gcc-arm-none-eabi
$ export PATH=$PATH:/usr/local/gcc-arm-none-eabi/bin
$ which arm-none-eabi-gcc



How to build

Install ATS2

$ sudo apt-get install libgmp-dev
$ wget
$ tar xf ATS2-Postiats-0.0.8.tgz
$ cd ATS2-Postiats-0.0.8
$ ./configure
$ make
$ sudo make install
$ export PATSHOME=/usr/local/lib/ats2-postiats-0.0.8

Compile the ATS source code for mbed.

$ cd mbed-ats
$ make
$ file demos/blink_ats/blink_ats.elf
demos/blink_ats/blink_ats.elf: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, not stripped

Write to the flash

Upgrade firmware. Use rev 141212 or later firmware, to support CMSIS-DAP. (Detail:

Install pyOCD. (Detail:

$ sudo apt-get install python libusb-1.0-0-dev
$ git clone
$ cd pyusb
$ sudo python install
$ git clone
$ cd pyOCD
$ sudo python install

In one terminal, start the connection to the board.

$ sudo python pyOCD/test/

In another terminal, connect to the debugger and flash program.

$ cd mbed-ats/demos/blink_ats
$ make gdbwrite

How to debug using gdb


=== Original README ===

======= mbed SDK

Build Status

The mbed Software Development Kit (SDK) is a C/C++ microcontroller software platform relied upon by tens of thousands of developers to build projects fast.

The SDK is licensed under the permissive Apache 2.0 licence, so you can use it in both commercial and personal projects with confidence.

The mbed SDK has been designed to provide enough hardware abstraction to be intuitive and concise, yet powerful enough to build complex projects. It is built on the low-level ARM CMSIS APIs, allowing you to code down to the metal if needed. In addition to RTOS, USB and Networking libraries, a cookbook of hundreds of reusable peripheral and module libraries have been built on top of the SDK by the mbed Developer Community.


Supported Microcontrollers and Boards

View all on the mbed Platforms page.






Silicon Labs:

Supported Toolchains and IDEs

API Documentation


For discussing the development of the mbed SDK itself (Addition/support of microcontrollers/toolchains, build and test system, Hardware Abstraction Layer API, etc) please join our mbed-devel mailing list.

For every topic regarding the use of the mbed SDK, rather than its development, please post on the forum, or the Q&A.

For reporting issues in the mbed libraries please open a ticket on the issue tracker of the relevant mbed official library.