BLE application with nRF51822 – Toolchain setup

In this short post I will explain you how to setup Mac OS X environnement development with GCC for ARM Cortex M0 architecture (for lazy guys ;-) you can checkout my git repository on All the commands have to be launched in a Mac OS terminal.
  • Create your project folders:
        $ mkdir nrf51
        $ cd nrf51</code>
        $ mkdir toolchain</code>

Download ARM Cortex M0 toolchain in nrf51/toolchain/ folder on and select gcc-arm-none-eabi-4_8-2014q1-20140314-mac.tar.bz2. Unzip it in nrf51/toolchain. As you can see that toolchain is also available for Linux and Window.

  • Uncompress the toolchain:
        $ tar -jxvf gcc-arm-none-eabi-4_8-2014q1-20140314-mac.tar.bz2
        $ mv gcc-arm-none-eabi-4_8-2014q1 arm_cm0
  • Now you should be able to check toolchain version
        $ arm_cm0/bin/arm-none-eabi-gcc --version
        $./arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.7.3 20130312 (release)        [ARM/embedded-4_7-branch revision 196615]
Here we are! After this post every one should be able to compile projects for ARM Cortex M0 with GCC. In the next post I’ll talk about the linker script.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s