@@ -11,23 +11,19 @@ If user only need to run mbed OS applications or examples rather than Greentea t
1111
1212
1313## Requirements
14- 1 . Make sure you have Arm Fast Models Libraries files installed to your host machines, as well as the Fast Models PyCADI .
14+ 1 . Make sure you have Arm Fast Models FVPs as well as the Fast Models Iris python modules installed. This Package is not including neither of them. Also a valid license to the Fastmodels could be required .
1515
1616> please referencing [ Fast Models User Guide] ( https://developer.arm.com/docs/100965/latest )
1717
18- 2 . A valid Fast Models license been set up correctly.
19-
20- > please referencing [ Fast Models User Guide] ( https://developer.arm.com/docs/100965/latest )
21-
22- 3 . Greentea version 1.5.0 or later
18+ 2 . Use Greentea and mbedhtrun version 1.5.0 or later
2319```
24- pip install mbed-greentea -U
20+ # Check versions
2521mbedgt --version
26- ```
27- 4 . Htrun version 1.4.1 or later
28- ```
29- pip install mbed-host-tests -U
3022mbedhtrun --version
23+
24+ # Update mbedgt and mbedhtrun
25+ pip install mbed-greentea -U
26+ pip install mbed-host-tests -U
3127```
3228
3329## Download
@@ -36,16 +32,15 @@ git clone https://github.com/ARMmbed/mbed-fastmodel-agent.git
3632cd mbed-fastmodel-agent
3733```
3834
39- ## Settings before installation
35+ ## Configurations before installation
40361 . Edit the configuration file ` fm_agent\settings.json `
41- 2 . Change ` model_lib_path ` value in the ` GLOBAL ` section to your Fast Models installation folder (where contains all fastmodel libs).
42- 3 . Change ` PyCADI_path ` value to PyCADI folder, alternatively you can have ` PVLIB_HOME ` environment variable set on your host
43- 4 . Optional: edit individual models if necessary
44- 5 . Optional: add configs to models if necessary
37+ 3 . Change ` IRIS_path ` value to IRIS Python folder
38+ 3 . Edit individual models binarys file path
39+ 4 . Optional: customize configs to models
4540
4641## Installation
4742```
48- python setup.py install
43+ sudo python setup.py install
4944```
5045* NOTE. you will need to re-run the install command after you changed the "settings.json" or any config file*
5146
@@ -57,29 +52,24 @@ python setup.py install
5752```
5853you should be able to see a table like:
5954```
60- +--------------+-----------------------------------------------+-------------+--------------+--------------+
61- | MODEL NAME | MODEL LIB full path | CONFIG NAME | CONFIG FILE | AVAILABILITY |
62- +--------------+-----------------------------------------------+-------------+--------------+--------------+
63- | | | DEFAULT | DEFAULT.conf | YES |
64- | FVP_MPS2_M0 | C:\work\model_libs\FVP_MPS2_Cortex-M0.dll | FAST | FAST.conf | YES |
65- | | | NETWORK | NETWORK.conf | YES |
66- +--------------+-----------------------------------------------+-------------+--------------+--------------+
67- | | | DEFAULT | DEFAULT.conf | YES |
68- | FVP_MPS2_M0P | C:\work\model_libs\FVP_MPS2_Cortex-M0plus.dll | FAST | FAST.conf | YES |
69- | | | NETWORK | NETWORK.conf | YES |
70- +--------------+-----------------------------------------------+-------------+--------------+--------------+
71- | | | DEFAULT | DEFAULT.conf | YES |
72- | FVP_MPS2_M3 | C:\work\model_libs\FVP_MPS2_Cortex-M3.dll | FAST | FAST.conf | YES |
73- | | | NETWORK | NETWORK.conf | YES |
74- +--------------+-----------------------------------------------+-------------+--------------+--------------+
75- | | | DEFAULT | DEFAULT.conf | YES |
76- | FVP_MPS2_M4 | C:\work\model_libs\FVP_MPS2_Cortex-M4.dll | FAST | FAST.conf | YES |
77- | | | NETWORK | NETWORK.conf | YES |
78- +--------------+-----------------------------------------------+-------------+--------------+--------------+
79- | | | DEFAULT | DEFAULT.conf | YES |
80- | FVP_MPS2_M7 | C:\work\model_libs\FVP_MPS2_Cortex-M7.dll | FAST | FAST.conf | YES |
81- | | | NETWORK | NETWORK.conf | YES |
82- +--------------+-----------------------------------------------+-------------+--------------+--------------+
55+ +--------------+-----------------------------------------------+-------------+---------------+--------------+
56+ | MODEL NAME | MODEL Binary Full Path | CONFIG NAME | CONFIG FILE | AVAILABILITY |
57+ +--------------+-----------------------------------------------+-------------+---------------+--------------+
58+ | FVP_MPS2_M0 | C:\work\models\FVP_MPS2_Cortex-M0.exe | MPS2 | MPS2.conf | YES |
59+ | | | COVERAGE | COVERAGE.conf | YES |
60+ +--------------+-----------------------------------------------+-------------+---------------+--------------+
61+ | FVP_MPS2_M0P | C:\work\models\FVP_MPS2_Cortex-M0plus.exe | MPS2 | MPS2.conf | YES |
62+ | | | COVERAGE | COVERAGE.conf | YES |
63+ +--------------+-----------------------------------------------+-------------+---------------+--------------+
64+ | FVP_MPS2_M3 | C:\work\models\FVP_MPS2_Cortex-M3.exe | MPS2 | MPS2.conf | YES |
65+ | | | COVERAGE | COVERAGE.conf | YES |
66+ +--------------+-----------------------------------------------+-------------+---------------+--------------+
67+ | FVP_MPS2_M4 | C:\work\models\FVP_MPS2_Cortex-M4.exe | MPS2 | MPS2.conf | YES |
68+ | | | COVERAGE | COVERAGE.conf | YES |
69+ +--------------+-----------------------------------------------+-------------+---------------+--------------+
70+ | FVP_MPS2_M7 | C:\work\models\FVP_MPS2_Cortex-M7.exe | MPS2 | MPS2.conf | YES |
71+ | | | COVERAGE | COVERAGE.conf | YES |
72+ +--------------+-----------------------------------------------+-------------+---------------+--------------+
8373```
8474### Self test for the settings
8575```
@@ -92,13 +82,13 @@ This will try to launch every model in the above list to verify them, so will ta
9282```
9383 mbedgt --fm <model_name>:<config_name>
9484```
95- > e.g. ` mbedgt --fm FVP_MPS2_M3:DEFAULT `
85+ > e.g. ` mbedgt --fm FVP_MPS2_M3:MPS2 `
9686
9787### run mbed test with htrun
9888```
99- mbedhtrun --fm <config_name> -m <model_name> -f <test_image>
89+ mbedhtrun --fm <config_name> -m <model_name> -f <test_image> <-e host_test_path>
10090```
101- > e.g. ` mbedhtrun --fm DEFAULT -m FVP_MPS2_M3 -f test.elf `
91+ > e.g. ` mbedhtrun -m FVP_MPS2_M3 --fm MPS2 -f test.elf -e ./host_tests `
10292
10393* <model_name> : The name to fastmodel target supported in mbed os*
10494
@@ -108,9 +98,10 @@ This will try to launch every model in the above list to verify them, so will ta
10898
10999The mbed fastmodel_agent module allow user to configure each individual module via a config file.
110100by default, 3 config files are provided:
111- * DEFAULT - default settings
112- * FAST - based on default turned off speed limit
113- * NETWORK - based on default enabled Ethernet
101+ * MPS2 - default settings for MPS2 based platforms
102+ * MPS3 - default settings for MPS3 based platforms
103+ * COVERAGE - configuration for MPS2 Code Coverage Test
104+
114105
115106## change config files
116107
@@ -123,9 +114,9 @@ The config files are standard Fast Models config file. for more detail about det
123114
124115Users are able to add their own customized config file to the ` mbed-fastmodel-agent\fm_agent\configs ` directory.
125116
126- Then users need to edit ` mbed-fastmodel-agent\fm_agent\settings.json ` file either in ` GLOBAL ` section or individual models.
117+ Then users need to edit ` mbed-fastmodel-agent\fm_agent\settings.json ` file either in ` COMMON ` section or individual models.
127118
128- Key ` configs_add ` can be added for additional config files for each model, Or Key ` config ` can be added to overwrite ` GLOBAL ` config files.
119+ Key ` configs_add ` can be added for additional config files for each model, Or Key ` config ` can be added to overwrite ` COMMON ` config files.
129120
130121## Known limitations:
1311221 . Fast Models normally have 3 or 4 serial terminal ports. But currently only one port is used at moment.
0 commit comments