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.)
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).
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
42
31
43
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
44
@@ -55,14 +67,48 @@ Load the compiled example image to the FVP_MPS2_Cortex-M3 target. To do so, pass
55
67
$ FVP_MPS2_Cortex-M3 -a BUILD/FVP_MPS2_M3/GCC_ARM/mbed-os-example-blinky.elf
56
68
```
57
69
58
-
The FVPs start running, andthe LEDs on the FVP blink, like:
70
+
The FVPs start running, and the LEDs on the FVP blink, like:
<span>a screen-shot for FVPs running</span></span>
75
+
76
+
<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>
59
77
60
-
<spanclass="images"><span>a screen-shot for FVPs running</span></span>
78
+
#### Run Mbed OS sockets examples with Fast Models Ethernet
79
+
80
+
Fast Models ethernet is a specical compoment which not been enabled by default. Two special options are required when using the ethernet compoment or any networking functions.
81
+
82
+
<spanclass="notes">**Note:** 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/IP protocol, but neither ICMP nor IGMP protocol. which means ping would not work. For more details about how the Fast Models ethernet MAC working, 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>
83
+
84
+
Here, `mbed-os-example-sockets` example is used to demonstrated ethernet function. The example can be build as usual:
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
+
While launching the mbed OS socket example with Fast Models Ethernet function, arguments `-C fvp_mps2.smsc_91c111.enabled=1` and `-C fvp_mps2.hostbridge.userNetworking=1` need to be passed in the command line:
91
+
```
92
+
$ 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
93
+
```
94
+
95
+
The FVPs start running, and the console output like::
96
+
97
+
```
98
+
Mbed OS Socket example
99
+
Mbed OS version: 99.99.99
100
+
101
+
IP address: 172.20.51.1
102
+
Netmask: 255.255.255.0
103
+
Gateway: 172.20.51.254
104
+
sent 58 [GET / HTTP/1.1]
105
+
recv 181 [HTTP/1.1 200 OK]
106
+
External IP address: 217.140.106.54
107
+
Done
108
+
```
61
109
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>
63
110
64
111
### Notes
65
112
66
113
1. Timing accuracy of Fast Models can't be guaranteed.
67
114
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