SEARCH
TOOLBOX
LANGUAGES
modified on 11 July 2013 at 11:23 ••• 8,978 views

Bambino-200 Manual/Rebuild Firmware

From Manuals

Jump to: navigation, search

Command Line Build

All NetMF 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 is supported. Our primary firmware development tool is Keil MDK 4.71. The GCC Code Red toolchain will be supported by the end of August.

2. Install the NetMF Porting Kit. This includes full source code for the CLR. The default installation directory is C:\MicroFrameworkPK_v4_2.

3. Install the LPC43XX and Bambino 200 source files from the Micromint repository.

4. Compile the TinyBooter. These are typical commands to change to the source directory, setup compiler environment and build the bootloader.

cd \MicroFrameworkPK_v4_2\Solutions\Bambino200\TinyBooter
call ..\..\..\setenv_mdk.cmd 4.71 C:\Keil\ARM
msbuild TinyBooter.proj /t:rebuild /p:flavor=release;memory=flash >msbuild.log

If your build is successful, a TinyBooter binary will be generated. If not, check the msbuild.log file.

dir ..\..\..\BuildOutput\THUMB2\MDK4.71\le\FLASH\release\Bambino200\bin\*.bin
Volume in drive C is OS
Volume Serial Number is F051-6A1D

Directory of C:\MicroFrameworkPK_v4_2\BuildOutput\THUMB2\MDK4.71\le\FLASH\release\Bambino200\bin

07/05/2013  10:54 AM            36,180 Tinybooter.bin

5. Compile the TinyCLR. These are typical commands to change to the source directory, setup compiler environment and build the CLR.

cd \MicroFrameworkPK_v4_2\Solutions\Bambino200\TinyCLR
call ..\..\..\setenv_mdk.cmd 4.71 C:\Keil\ARM
msbuild TinyCLR.proj /t:rebuild /p:flavor=release;memory=flash >msbuild.log

If your build is successful, the TinyCLR config and firmware hex files will be generated. If not, check the msbuild.log file.

dir ..\..\..\BuildOutput\THUMB2\MDK4.71\le\FLASH\release\Bambino200\bin\tinyclr.hex
Volume in drive C is OS
Volume Serial Number is F051-6A1D

Directory of C:\MicroFrameworkPK_v4_2\BuildOutput\THUMB2\MDK4.71\le\FLASH\release\Bambino200\bin\tinyclr.hex

07/05/2013  11:26 AM             6,968 ER_CONFIG
07/05/2013  11:26 AM         1,343,816 ER_FLASH

IDE Build

When implementing new or modified NetMF 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 TinyBooter and TinyCLR with the Keil MDK. These allow you to access a full featured ARM development environment and debugger. A JTAG is required for debugging.

TinyCLR project for Keil MDK
TinyCLR project for Keil MDK

For production builds, the command line procedure based on 'msbuild' should be used since it is integrated with other NetMF tools. For example, changing CLR features with the Solution Wizard changes the 'msbuild' projects and implements any stubs or templates required. These changes need to be implemented manually in the project file.


NEXT: Rebuild mbed Firmware

PREVIOUS: Updating Firmware