2.4 Compiling code using ARM mbed™ online toolchain

The mbed™ online toolchain allows you to develop applications using the mbed OS.

Before using the mbed online compiler:

  1. Go to the mbed platform site at https://developer.mbed.org/platforms/.
  2. Search and select ARM Cortex-M3 DesignStart.
  3. In the ARM Cortex-M3 DesignStart platform site, select Add to your mbed Compiler. Alternatively, open the <install_directory>/boards/Recovery/mbed.htm file in a web browser.

To compile and run a basic LED blinking program on the MPS2+ platform using the online mbed compiler, follow these steps:

  1. Go to the mbed compiler site at http://developer.mbed.org/compiler/.
  2. Import the program and libraries into your workspace by selecting New program. This gives a dialog for you to select the following:
    PlatformARM Cortex-M3 DesignStart
    TemplateBlinky LED Hello World
    Program namembed_blinky
  3. Select Compile to compile the program and produce a .bin file, which will be downloaded automatically.
  4. Rename the .bin file to follow an 8:3 character format (for example, mbed_bl.bin).
  5. Ensure that your MPS2+ platform is powered up and connected to the computer. Your computer should recognize the MPS2+ platform as an external USB drive, named V2M_MPS2.
  6. Copy the .bin file to the following MPS2+ platform drive:
    V2M_MPS2:\SOFTWARE 
  7. Edit the following file to reference the .bin file.
    V2M_MPS2:\MB\HBI0263C\AN511\images.txt
    For example:
    TITLE: Versatile Express Images Configuration File
    
    [IMAGES]
    TOTALIMAGES: 1                     ;Number of Images (Max: 32)
    
    IMAGE0ADDRESS: 0x00000000          ;Please select the required executable program
    ;IMAGE0FILE: \SOFTWARE\st_m3ds.axf ; - M3 DesignStart selftest
    IMAGE0FILE: \SOFTWARE\mbed_bl.bin  ; Compiled on mbed.org

Note:

If you are using the mbed command-line interface, use cm3ds_mps2 as the platform name.
Non-ConfidentialPDF file icon PDF versionARM 100895_0000_00_en
Copyright © 2017 ARM Limited or its affiliates. All rights reserved.