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 https://github.com/jocelynmass/nrf51). 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 https://launchpad.net/gcc-arm-embedded 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.
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s