SEARCH
TOOLBOX
LANGUAGES
modified on 1 June 2015 at 14:00 ••• 80,889 views

Bambino-210 Manual/Offline Toolchains

From Manuals

(Difference between revisions)
Jump to: navigation, search
(Rebuilding mbed Libraries)
Line 7: Line 7:
==Rebuilding mbed Libraries==
==Rebuilding mbed Libraries==
 +
The source code for the mbed library is open source and can be downloaded from the [http://github.com/mbedmicro/mbed mbed mainline repository] or the [http://github.com/micromint Micromint repository]. To recompile it please follow these steps:
-
  python workspace_tools/build.py -v -r -m LPC4330_M4 -t ARM
+
1. Install a compatible ARM toolchain. The mbed port for LPC4330 targets currently supports the [http://www.keil.com/arm/selector.asp Keil MDK], [http://launchpad.net/gcc-arm-embedded GCC ARM] and [http://code-red-tech.com/products.php GCC Code Red]  toolchains. Firmware at Micromint is mostly developed using Keil MDK 4.73.
-
+
 
-
  python workspace_tools/build.py -v -r -m LPC4330_M4 -t GCC_ARM
+
2. Install [http://www.python.org/getit/ Python 2.7]. The mbed build scripts are written in Python.
 +
 
 +
3. Install the [https://github.com/mbedmicro/mbed/archive/master.zip mbed Library Sources]. This includes full source code for all supported multiple microcontrollers and boards.
 +
 
 +
4. Compile the base mbed libraries. These are typical commands to change to the source directory, setup compiler environment and build the bootloader. Note that the Python directory in the PATH may be different in your development system.
 +
cd mbed-master
 +
SET PATH=C:\Windows\system32;C:\Windows;C:\Python27
 +
  python workspace_tools/build.py -v -r -m LPC4330_M4 -t ARM > build.log
 +
  python workspace_tools/build.py -v -r -m LPC4330_M4 -t GCC_ARM >> build.log
 +
If your build is successful, the mbed libraries and headers for the LPC4330 M4 and M0 cores will be available in the ..\build directory. If not, check the build.log file.
==Keil MDK with Library Source==
==Keil MDK with Library Source==

Revision as of 15:07, 21 January 2015

Contents

Offline Toolchains

Keil MDK

GCC-ARM

Rebuilding mbed Libraries

The source code for the mbed library is open source and can be downloaded from the mbed mainline repository or the Micromint repository. To recompile it please follow these steps:

1. Install a compatible ARM toolchain. The mbed port for LPC4330 targets currently supports the Keil MDK, GCC ARM and GCC Code Red toolchains. Firmware at Micromint is mostly developed using Keil MDK 4.73.

2. Install Python 2.7. The mbed build scripts are written in Python.

3. Install the mbed Library Sources. This includes full source code for all supported multiple microcontrollers and boards.

4. Compile the base mbed libraries. These are typical commands to change to the source directory, setup compiler environment and build the bootloader. Note that the Python directory in the PATH may be different in your development system.

cd mbed-master
SET PATH=C:\Windows\system32;C:\Windows;C:\Python27
python workspace_tools/build.py -v -r -m LPC4330_M4 -t ARM > build.log
python workspace_tools/build.py -v -r -m LPC4330_M4 -t GCC_ARM >> build.log

If your build is successful, the mbed libraries and headers for the LPC4330 M4 and M0 cores will be available in the ..\build directory. If not, check the build.log file.

Keil MDK with Library Source


NEXT: Hardware

PREVIOUS: Getting Started