SEARCH
TOOLBOX
LANGUAGES
modified on 21 January 2015 at 14:38 ••• 47,523 views

Bambino-200 Manual/Rebuild mbed Firmware

From Manuals

Revision as of 14:38, 21 January 2015 by Support (Talk | contribs)
Jump to: navigation, search

Command Line Build

All mbed firmware used in the Bambino 200 is open source and can be downloaded from the Micromint repository. To recompile it please follow these steps:

1. Install a compatible ARM toolchain. Currently the Keil MDK and IAR EWARM are supported. Firmware at Micromint is mostly developed using Keil MDK 4.73. Releases are also tested with GCC ARM and GCC Code Red toolchain.

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 multiple mbed libraries. The Micromint port of mbed to the LPC43XX is included in the master distribution.

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 -m LPC4330_M4 -t ARM >build.log
python workspace_tools/build.py -v -m LPC4330_M0 -t 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.

IDE Build

When implementing new or modified mbed functionality, a large percentage of the development time is spent debugging and troubleshooting code changes. To improve prodctivity, our implementation includes project files to build and debug the mbed library with the Keil MDK. These allow you to access a full featured ARM development environment and debugger. A JTAG is required for debugging.

mbed project for Keil MDK
mbed project for Keil MDK

For production builds, the mbed build system should be used.


NEXT: Hardware

PREVIOUS: Rebuild NetMF Firmware