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
Update versions - OS 5.14.1, Client 4.0.0, formatting
Versions were wrong, updating to match current .lib hashes.
Adding some formatting - personally I think all the "command like"
and JSON -type stuff should be in formatted text mode.
Copy file name to clipboardExpand all lines: README.md
+26-8Lines changed: 26 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Pelion Client Mbed OS Example
2
2
3
3
This is a simplified example with the following features:
4
-
- Mbed OS 5.13.0 and Pelion Device Management Client 3.3.0
4
+
- Mbed OS 5.14.1 and Pelion Device Management Client 4.0.0
5
5
- Support for FW Update
6
6
- 200 lines of code + credential sources
7
7
@@ -43,15 +43,19 @@ This section is intended for developers to get started, import the example appli
43
43
44
44
This repository is in the process of being updated and depends on few enhancements being deployed in mbed-cloud-client. In the meantime, follow these steps to import and apply the patches before compiling.
@@ -117,6 +121,7 @@ You can extend or override the default configuration using `mbed_app.json` in th
117
121
118
122
Then start designing the system memory map, the location of components (whether they are on internal or external memory), and the corresponding base addresses and sizes. You may want to create a diagram similar to the one below to help you to make design decisions:
119
123
124
+
```
120
125
+--------------------------+
121
126
| |
122
127
| |
@@ -147,30 +152,35 @@ You can extend or override the default configuration using `mbed_app.json` in th
147
152
| Bootloader |
148
153
| |
149
154
+--------------------------+ <-+ 0
155
+
```
150
156
151
157
In cases where the MCU has two separate memory banks, it's appropiate to allocate the bootloader and base application in one bank, and KVSTORE storage at the begining of the second bank followed by a firmware candidate storage.
152
158
153
159
-**Option 1:** Allocating credentials in internal memory
154
160
155
161
**This is the preferred option whenever possible**. Make sure `TDB_INTERNAL` is the type of storage selected in `mbed_app.json`. Specify the base address depending on the available memory in the system. The size of this section should be aligned with the flash erase sector. The value should be multiple of 4 with a minimum of 24KB and upwards depending on the use case (for example the usage of certificate chain will increase the need of storage to hold those certificates). An example of this configuration can be seen for the `NUCLEO_F429ZI` platform in this application.
-**Option 2:** Allocating credentials in external memory:
162
170
163
171
This is possible when the platform has an storage device wired to the MCU (could be on-board or external component). Make sure `FILESYSTEM` is specified as type of storage. The blockdevice and filesystem should be one of the supported in Mbed OS (see [docs](https://os.mbed.com/docs/mbed-os/latest/porting/blockdevice-port.html)).
164
172
165
173
An example of this configuration can be seen for the `K64F` platform in the [mbed-cloud-client-example](https://github.com/ARMmbed/mbed-cloud-client-example/blob/master/mbed_app.json#L32)
-**Option 1:** Allocating the firmware update candidate in internal memory
208
220
209
221
**This is the preferred option whenever possible**. Make sure `ARM_UCP_FLASHIAP` is selected in `update-storage` in `mbed_app.json`. This area should be located at the end of the flash after the KVSTORE area. Specify the `storage-address`, `storage-size` and `storage-page` as required. The `application-details` option should point at the end of the bootloader area. An example of this configuration can be seen for the `NUCLEO_F429ZI` platform.
-**Option 2:** Allocating the firmware update candidate in external memory
217
231
218
232
When using an external device to the MCU to store the firmware candidate, make sure `ARM_UCP_FLASHIAP_BLOCKDEVICE` is specified as type of `update-storage`. Specify the `storage-address`, `storage-size` and `storage-page` as required.
219
233
220
234
An example of this configuration can be seen for the `K64F` platform in the [mbed-cloud-client-example](https://github.com/ARMmbed/mbed-cloud-client-example/blob/master/mbed_app.json#L32)
@@ -231,21 +247,23 @@ The bootloader is required to perform FW Updates. The steps below explain how to
231
247
232
248
1. Edit the bootloader application configuration in this example (`bootloader/bootloader_app.json`) and add a new target entry. An example of this configuration can be seen for the `NUCLEO_F429ZI` platform:
<spanclass="notes">**Note:**`mbed-bootloader` is primarily optimized for `GCC_ARM`, so you may want to compile it with that toolchain.
251
269
Before jumping to the next step, you should compile and flash the bootloader and then connect over the virtual serial port to ensure the bootloader is running correctly. You can ignore errors related to checksum verification or falure to jump to application - these are expected at this stage.</span>
@@ -263,7 +281,7 @@ In addition to having an example application succesfully connected to Pelion DM,
263
281
264
282
See [mbed-os/TESTS/integration/README.md](https://github.com/ARMmbed/mbed-os/blob/sip-workshop/TESTS/integration/README.md) (sip-workshop branch)
265
283
266
-
`mbed test -t <toolchain> -m <platform> -n *integration-* -DINTEGRATION_TESTS -v`
284
+
`mbed test -t <toolchain> -m <platform> -n *integration-* -DINTEGRATION_TESTS -v`
0 commit comments