mbed-os/targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2
Bence Kaposzta 709c121a0c Fixes typos in SMSC9220 Ethernet driver
Change-Id: I44a12ec1c57a926dadee81df1b84bd531d5cfccb
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2019-01-15 15:36:35 +01:00
..
device Fixes typos in SMSC9220 Ethernet driver 2019-01-15 15:36:35 +01:00
PeripheralNames.h CM3DS: merge the two system header files into one 2018-04-20 16:40:27 +01:00
PinNames.h CM3DS: merge the two system header files into one 2018-04-20 16:40:27 +01:00
PortNames.h Update port api driver to add missing ports 2017-06-15 17:30:31 +01:00
README.md Copy edit README.md 2018-03-12 16:25:05 +00:00
analogin_api.c Add analogin driver for CM3DS MPS2 target 2017-06-15 17:30:30 +01:00
cmsdk_ticker.c CM3DS: update tickers implementation 2018-02-21 18:12:55 +00:00
cmsdk_ticker.h CM3DS: merge the two system header files into one 2018-04-20 16:40:27 +01:00
device.h CM3DS: merge the two system header files into one 2018-04-20 16:40:27 +01:00
flash_api.c Support erase value in Flash HAL drivers, FlashIAP and block devices 2018-11-07 14:23:07 +02:00
gpio_api.c Fix for CM3DS GPIO api 2018-08-03 15:10:49 +02:00
gpio_irq_api.c CM3DS: update GPIO, IRQ and port implementation 2018-02-21 18:17:55 +00:00
gpio_objects.h Merge branch 'master' of https://github.com/paul-szczepanek-arm/mbed-os 2018-02-27 17:23:25 +00:00
i2c_api.c CM3DS: merge the two system header files into one 2018-04-20 16:40:27 +01:00
lp_ticker.c Implement LP and us tickers to CM3DS 2018-11-14 11:10:09 +01:00
mbed_overrides.c This commit adds EMAC driver for CM3DS that uses an SMSC LAN 9220 2018-10-29 15:30:47 +01:00
objects.h Flash API: Enable Flash api on CM3DS 2018-07-09 21:07:48 +08:00
pinmap.c Merge branch 'master' of https://github.com/paul-szczepanek-arm/mbed-os 2018-02-27 17:23:25 +00:00
port_api.c CM3DS: fix compiler warnings 2018-04-20 16:52:19 +01:00
rtc_api.c Add RTC and Sleep to CM3DS 2018-11-14 11:10:26 +01:00
serial_api.c CM3DS: fix compiler warnings 2018-04-20 16:52:19 +01:00
sleep_api.c Merge branch 'master' into cm3ds_lp_requirements 2018-11-20 19:54:33 +01:00
spi_api.c CM3DS: update SPI implementation 2018-02-21 18:20:24 +00:00
trng_api.c CM3DS: merge the two system header files into one 2018-04-20 16:40:27 +01:00
us_ticker.c Implement LP and us tickers to CM3DS 2018-11-14 11:10:09 +01:00

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