mbed-os / targets / TARGET_ARM_SSG / TARGET_CM3DS_MPS2 /
@Rami Elkhatib Rami Elkhatib authored on 11 May 2022
..
device MPS2 CM3DS ethernet words instead of bytes 2 years ago
CMakeLists.txt CMake Arm SSG: refactor CMake targets 3 years ago
PeripheralNames.h Add SPDX license identifier to Arm files 3 years ago
PinNames.h Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides 3 years ago
PortNames.h Add SPDX license identifier to Arm files 3 years ago
README.md Copy edit README.md 6 years ago
analogin_api.c Add SPDX license identifier to Arm files 3 years ago
cmsdk_ticker.c Add SPDX license identifier to Arm files 3 years ago
cmsdk_ticker.h Add SPDX license identifier to Arm files 3 years ago
device.h Add SPDX license identifier to Arm files 3 years ago
flash_api.c Add SPDX license identifier to Arm files 3 years ago
gpio_api.c Add SPDX license identifier to Arm files 3 years ago
gpio_irq_api.c GPIO: Use uintptr_t for gpio_irq_api context 2 years ago
gpio_objects.h Add SPDX license identifier to Arm files 3 years ago
i2c_api.c Add SPDX license identifier to Arm files 3 years ago
lp_ticker.c Add SPDX license identifier to Arm files 3 years ago
mbed_overrides.c Add SPDX license identifier to Arm files 3 years ago
objects.h Add SPDX license identifier to Arm files 3 years ago
pinmap.c Add SPDX license identifier to Arm files 3 years ago
port_api.c Add SPDX license identifier to Arm files 3 years ago
rtc_api.c Add SPDX license identifier to Arm files 3 years ago
serial_api.c Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides 3 years ago
sleep_api.c Add SPDX license identifier to Arm files 3 years ago
spi_api.c Add SPDX license identifier to Arm files 3 years ago
trng_api.c Add SPDX license identifier to Arm files 3 years ago
us_ticker.c Add SPDX license identifier to Arm files 3 years ago
README.md

Cortex-M3 Design Start Eval package example on MPS2+ board

This folder includes the port of Mbed OS on the example system of the Cortex-M3 Design Start Eval package. This example is implemented in FPGA on the MPS2+ board. Please see this target's Mbed page for more information. For convenience, this target is called CM3DS.

Compiling

The target name is ARM_CM3DS_MPS2. You can compile Mbed OS projects for CM3DS with:

mbed compile -t COMPILER -m ARM_CM3DS_MPS2

Mbed OS supports the following compilers (replace COMPILER with):

  • ARM for Arm Compiler version 5.
  • GCC_ARM for GNU Compiler for Arm.
  • IAR for IAR compiler.

Running

Because of the new memory configuration introduced in commit CM3DS: switch to larger memories for code and data, it has become easier (and portable among all compilers) to use .elf files instead of .bin. .elf files are now the default for CM3DS projects, and compilation generates only them. For .elf files to work, you need at least version 2.2.5 of the MPS2+ firmware. For more information, please see the firmware version 2.2.6 and instructions on how to put it in the MPS2+ board.

Testing

If you want to execute the Mbed OS greentea tests on CM3DS, you need at least firmware version 2.2.6.

  • mbedls does not automatically recognize which serial port is linked to the board. Check it manually, and create a file named mbedls.json containing (at the same level than where you execute all commands):
{
    "50040200074D652F3828F333": {
        "serial_port": "/dev/ttyUSB0"
    }
}

Replace /dev/ttyUSB0 with your correct serial port (something like COM6 on Windows).

  • mbedls does not link CM3DS target ID with its name, so execute the command:
mbedls --mock 5004:ARM_CM3DS_MPS2
  • You can now compile and run the tests:
mbed test -m ARM_CM3DS_MPS2 -t COMPILER