1
1
# Cortex-M3 Design Start Eval package example on MPS2+ board
2
2
3
- This folder includes the port of mbed OS on the example system of the Cortex-M3
3
+ This folder includes the port of Mbed OS on the example system of the Cortex-M3
4
4
Design Start Eval package. This example is implemented in FPGA on the MPS2+
5
- board. Please check the [ Mbed page] ( https://os.mbed.com/platforms/ARM-CM3DS/ ) of
6
- this target for more information.
5
+ board. Please see this target's [ Mbed page] ( https://os.mbed.com/platforms/ARM-CM3DS/ )
6
+ for more information.
7
7
For convenience, this target is called ** CM3DS** .
8
8
9
9
## Compiling
10
10
11
- The target name is ` ARM_CM3DS_MPS2 ` , you should be able to compile Mbed OS
11
+ The target name is ` ARM_CM3DS_MPS2 ` . You can compile Mbed OS
12
12
projects for CM3DS with:
13
13
14
14
``` bash
15
15
mbed compile -t COMPILER -m ARM_CM3DS_MPS2
16
16
```
17
17
18
- The following compilers are supported (replace ` COMPILER ` with):
18
+ Mbed OS supports the following compilers (replace ` COMPILER ` with):
19
19
20
20
* ` ARM ` for Arm Compiler version 5.
21
21
* ` GCC_ARM ` for GNU Compiler for Arm.
@@ -25,9 +25,9 @@ The following compilers are supported (replace `COMPILER` with):
25
25
26
26
Because of the new memory configuration introduced in commit `CM3DS: switch to
27
27
larger memories for code and data`, it
28
- has become easier (and portable amoung all compilers) to use ` .elf ` files
29
- instead of ` .bin ` . ` .elf ` files are now the default for CM3DS projects and only
30
- they will be generated from the compilation .
28
+ has become easier (and portable among all compilers) to use ` .elf ` files
29
+ instead of ` .bin ` . ` .elf ` files are now the default for CM3DS projects, and compilation
30
+ generates only them .
31
31
For ` .elf ` files to work, you need ** at least version 2.2.5** of the MPS2+
32
32
firmware. For more information, please see the [ firmware version 2.2.6 and instructions on how to put it
33
33
in the MPS2+ board] ( https://community.arm.com/processors/designstart/f/discussions/9727/mps2-firmware-for-mbed ) .
@@ -40,23 +40,26 @@ If you want to execute the Mbed OS greentea tests on CM3DS, you need
40
40
* ` mbedls ` does not automatically recognize which serial port is linked to the
41
41
board. Check it manually, and create a file named ` mbedls.json ` containing
42
42
(at the same level than where you execute all commands):
43
+
43
44
``` bash
44
45
{
45
46
" 50040200074D652F3828F333" : {
46
47
" serial_port" : " /dev/ttyUSB0"
47
48
}
48
49
}
49
50
```
51
+
50
52
Replace ` /dev/ttyUSB0 ` with your correct serial port
51
53
(something like ` COM6 ` on Windows).
52
54
53
55
* ` mbedls ` does not link CM3DS target ID with its name, so execute the command:
56
+
54
57
``` bash
55
58
mbedls --mock 5004:ARM_CM3DS_MPS2
56
59
```
57
60
58
- * You can now compile and run the tests
61
+ * You can now compile and run the tests:
62
+
59
63
``` bash
60
64
mbed test -m ARM_CM3DS_MPS2 -t COMPILER
61
65
```
62
-
0 commit comments