You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fast Models can run most of the Mbed OS examples. (Please see [known issues 2 and 3](#known-issues)] for more information.)
25
+
Fast Models can run most of the Mbed OS examples.
26
26
27
-
Examples you can successfully run include[`mbed-os-example-thread-statistics`](https://github.com/ARMmbed/mbed-os-example-thread-statistics), [`mbed-os-example-tls`](https://github.com/ARMmbed/mbed-os-example-tls), [`mbed-os-example-devicekey`](https://github.com/ARMmbed/mbed-os-example-devicekey) and [`mbed-os-example-nvstore`](https://github.com/ARMmbed/mbed-os-example-nvstore).
27
+
Examples you can successfully run include:
28
28
29
-
The following examples use [`mbed-os-example-blinky`](https://github.com/ARMmbed/mbed-os-example-blinky).
The following examples use `mbed-os-example-blinky`.
30
43
31
44
To run Mbed OS examples with Fast Models, you need to install the Fast Models product and set up the license. The [Arm DS-5 Development Studio](https://developer.arm.com/products/software-development-tools/ds-5-development-studio) also provides Fast Models targets. To load a compiled Mbed OS image onto a Fast Models platform, such as the FVP_MPS2_Cortex-M0, you need to add your installation's `bin` folder to your system `PATH`. For example: `C:\Program Files\DS-5 v5.29.1\bin`.
32
45
@@ -55,14 +68,48 @@ Load the compiled example image to the FVP_MPS2_Cortex-M3 target. To do so, pass
55
68
$ FVP_MPS2_Cortex-M3 -a BUILD/FVP_MPS2_M3/GCC_ARM/mbed-os-example-blinky.elf
56
69
```
57
70
58
-
The FVPs start running, andthe LEDs on the FVP blink, like:
71
+
The FVPs start running, and the LEDs on the FVP blink, like:
72
+
73
+
<spanclass="images"><span>A screen shot of FVPs running</span></span>
74
+
75
+
<spanclass="notes">**Note:** FVP's `-a` option only takes `.elf` format images. To use the `--data` option with binary format images, please reference the [FVP reference guide](https://developer.arm.com/docs/100966/latest).</span>
76
+
77
+
#### Run Mbed OS sockets examples with Fast Models ethernet
78
+
79
+
Fast Models ethernet is a special component not enabled by default.
59
80
60
-
<spanclass="images"><span>a screen-shot for FVPs running</span></span>
81
+
<spanclass="notes">**Note:** The current version of Fast Model ethernet implementations requires Fast Models 11.3 or later or DS-5 5.29.0 or later. Also, the simulated IP routing only works on TCP and IP protocols, but neither the ICMP nor the IGMP protocol. This means ping does not work. For more details about how the Fast Models ethernet MAC works, please reference the [Fast Models reference manual](https://developer.arm.com/products/system-design/fast-models/docs/100964/latest/introduction/network-set-up/user-mode-networking).</span>
61
82
62
-
<spanclass="notes">**Note:** FVP's `-a` option only takes .elf format images. To use the `--data` option with binary format images, please reference the [FVP Users' Guide](http://arminfo.emea.arm.com/help/index.jsp?topic=/com.arm.doc.100966_1103_00_en/index.html).</span>
83
+
Here, the `mbed-os-example-sockets` example demonstrates ethernet function. You can build the example as usual:
84
+
85
+
```
86
+
$ mbed import mbed-os-example-sockets
87
+
$ cd mbed-os-example-sockets
88
+
$ mbed compile -t GCC_ARM -m FVP_MPS2_M3
89
+
```
90
+
91
+
While launching the Mbed OS socket example with the Fast Models Ethernet function, you need to pass the arguments `-C fvp_mps2.smsc_91c111.enabled=1` and `-C fvp_mps2.hostbridge.userNetworking=1` in the command-line:
92
+
93
+
```
94
+
$ FVP_MPS2_Cortex-M3 -C fvp_mps2.smsc_91c111.enabled=1 -C fvp_mps2.hostbridge.userNetworking=1 -a BUILD/FVP_MPS2_M3/GCC_ARM/mbed-os-example-sockets.elf
95
+
```
96
+
97
+
The FVPs start running, and the console output looks like:
98
+
99
+
```
100
+
Mbed OS Socket example
101
+
Mbed OS version: 99.99.99
102
+
103
+
IP address: 172.20.51.1
104
+
Netmask: 255.255.255.0
105
+
Gateway: 172.20.51.254
106
+
sent 58 [GET / HTTP/1.1]
107
+
recv 181 [HTTP/1.1 200 OK]
108
+
External IP address: 217.140.106.54
109
+
Done
110
+
```
63
111
64
112
### Notes
65
113
66
114
1. Timing accuracy of Fast Models can't be guaranteed.
67
115
1. There is no support for external peripherals, such as ESP8266 expansion boards.
68
-
1. Ethernet support for Fast Models is in progress.
0 commit comments