Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit 5f8598b

Browse files
committed
Add configuration parameters necessary for new version of STM WiFi boards
Also reduces number of `.mbedignore` files for better user experience, but compromising small builds!
1 parent 6ce9724 commit 5f8598b

File tree

6 files changed

+20
-24
lines changed

6 files changed

+20
-24
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ With Thread, you can change the operating mode of the client from the default ro
156156
* UBLOX_EVK_ODIN_W2. Check instructions for compilation [here](#compile-configuration-for-odin-wifi).
157157
* K64F + GROVE SEEED shield using [ESP8266](https://en.wikipedia.org/wiki/ESP8266) WiFi module.
158158
* NUCLEO_F429ZI + GROVE SEEED shield using [ESP8266](https://en.wikipedia.org/wiki/ESP8266) WiFi module.
159-
* [NUCLEO_F401RE](https://os.mbed.com/platforms/ST-Nucleo-F401RE/) + [WIFI-X-NUCLEO-IDW0XX1](https://github.com/ARMmbed/wifi-x-nucleo-idw01m1/).
159+
* [NUCLEO_F401RE](https://os.mbed.com/platforms/ST-Nucleo-F401RE/) + [X-NUCLEO-IDW0XX1](https://github.com/ARMmbed/wifi-x-nucleo-idw01m1/).
160160

161161
To run this application using ESP8266 WiFi Interface, you need:
162162

@@ -210,31 +210,31 @@ This should resolve the issue:
210210
``` bash
211211
cp configs/wifi_odin_v4.json mbed_app.json
212212
<use your favourite editor to modify mbed_app.json for WiFi details>
213-
cp configs/eth-wifi-mbedignore ./.mbedignore
213+
cp configs/mesh-mbedignore ./.mbedignore
214214
```
215215

216-
#### Compile configuration for Nucleo F401RE and X-Nucleo WiFi
216+
#### Compile configuration for STM `X-NUCLEO-IDW0XX1` WiFi expansion boards
217217

218-
To compile Nucleo X WiFi configuration, you need to tell mbed NOT to compile mesh files for example. To do that, set up a `.mbedignore` file. An example file is available in the `configs` folder.
218+
To compile STM X-NUCLEO WiFi configuration, you need to tell mbed NOT to compile mesh files for example. To do that, set up a `.mbedignore` file. Example files are available in the `configs` folder.
219219

220-
This should resolve the issue:
220+
This should resolve the issue (example for `X-NUCLEO-IDW01M1`):
221221

222222
``` bash
223223
cp configs/wifi_idw01m1_v4.json mbed_app.json
224224
<use your favourite editor to modify mbed_app.json for WiFi details>
225-
cp configs/wifi-idw0xx1-mbedignore ./.mbedignore
225+
cp configs/mesh-mbedignore ./.mbedignore
226226
```
227227

228-
Depending on which Wifi-module you have, you might have to change the module type in the `.json`file `target-overrides` section.
228+
Depending on which WiFi module you have, you might have to change the module type in the `.json` file's `target-overrides` section.
229229

230230
``` json
231-
"idw0x11": {
232-
"expansion.board": "IDW01M1"
233-
}
231+
"idw0xx1.expansion-board": "IDW01M1",
232+
"drivers.uart-serial-txbuf-size": 730,
233+
"drivers.uart-serial-rxbuf-size": 730
234234
```
235-
Options are: `IDW01M1` is the Morph form-factor board and `IDW04A1` is the Arduino form-factor board. The label is clearly printed on the PCB.
235+
Options are: `IDW01M1`, which is the Morpho form-factor board, and `IDW04A1`, which is the Arduino form-factor board. The label is clearly printed on the PCB.
236236

237-
If you have issues with the `IDW04A1` board you might have to define also a macro `IDW04A1_WIFI_HW_BUG_WA`. This can be added to the same `.json`file to the `macros:` section.
237+
If you have issues with the `IDW04A1` board you might have to define also macro `IDW04A1_WIFI_HW_BUG_WA`. This can be added to the `macros` section of the same `.json` file.
238238

239239
``` json
240240
"macros": [...,"IDW04A1_WIFI_HW_BUG_WA"],

configs/eth-wifi-mbedignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
easy-connect/atmel-rf-driver/*
22
easy-connect/mcr20a-rf-driver/*
33
easy-connect/stm-spirit1-rf-driver/*
4-
easy-connect/wifi-x-nucleo-idw01m1/*

configs/wifi-esp8266-mbedignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

configs/wifi-idw0xx1-mbedignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

configs/wifi_idw01m1_v4.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
"platform.stdio-convert-newlines": true,
3030
"mbed-trace.enable": 0,
3131
"wifi-tx": "PA_9",
32-
"wifi-rx": "PA_10"
32+
"wifi-rx": "PA_10",
33+
"idw0xx1.expansion-board": "IDW01M1",
34+
"drivers.uart-serial-txbuf-size": 730,
35+
"drivers.uart-serial-rxbuf-size": 730
3336
}
3437
}
3538
}

configs/wifi_idw04a1_v4.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"value": "D0"
2222
}
2323
},
24-
"macros": ["MBEDTLS_USER_CONFIG_FILE=\"mbedtls_mbed_client_config.h\"", "MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES","MBEDTLS_TEST_NULL_ENTROPY"],
24+
"macros": ["MBEDTLS_USER_CONFIG_FILE=\"mbedtls_mbed_client_config.h\"", "MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES","MBEDTLS_TEST_NULL_ENTROPY", "IDW04A1_WIFI_HW_BUG_WA"],
2525
"target_overrides": {
2626
"*": {
2727
"target.features_add": ["COMMON_PAL"],
@@ -30,7 +30,9 @@
3030
"mbed-trace.enable": 0,
3131
"wifi-tx": "D8",
3232
"wifi-rx": "D2",
33-
"idw0xx1.expansion-board": "IDW04A1"
33+
"idw0xx1.expansion-board": "IDW04A1",
34+
"drivers.uart-serial-txbuf-size": 750,
35+
"drivers.uart-serial-rxbuf-size": 750
3436
}
3537
}
3638
}

0 commit comments

Comments
 (0)