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
1. Use this [script](https://github.com/ARMmbed/mbed-cloud-client-example/blob/master/tools/combine_bootloader_with_app.py) to combine the bootloader with application `python tools/combine_bootloader_with_app.py -a {application.bin} -b {bootloader.bin} --app-offset {application-start-address} --header-offset {firmware_metadata_header_address} -o {combined.bin}`.
13
-
1. Flash `{combined.bin}` to device by drag and drop.
10
+
11
+
## Installation instructions
12
+
13
+
An image that contains the bootloader and your application can then be flashed on your device.
14
+
15
+
If you use Mbed CLI 1.8.x then two images are created when you compile the `example application`https://github.com/ARMmbed/mbed-cloud-client-example:
16
+
* A full image `mbed-cloud-client-example-internal.bin` which combines the application with the bootloader and is used for the initial programming of the device
17
+
* An update image `mbed-cloud-client-example-internal_update.bin` which contains only the application and is used for updating the device over the air
18
+
19
+
For more details, see [Arm Mbed OS managed bootloader](https://os.mbed.com/docs/v5.10/tutorials/bootloader.html#arm-mbed-os-managed-bootloader).
20
+
21
+
Flash `mbed-cloud-client-example-internal.bin` to your device by drag and drop.
14
22
15
23
## Metadata Header
16
24
@@ -34,7 +42,7 @@ If `application-jump-address` is not set, the `application-start-address` will b
34
42
35
43
### Firmware Candidate Storage
36
44
37
-
1.`MBED_CLOUD_CLIENT_UPDATE_STORAGE`, This need to be set in the "macros" section of `mbed_app.json`. Choices are ARM_UCP_FLASHIAP_BLOCKDEVICE and ARM_UCP_FLASHIAP. This determines whether the firmware is stored on a blockdevice or internal flash. If blockdevice is used `ARM_UC_USE_PAL_BLOCKDEVICE=1` must also be set.
45
+
1.`MBED_CLOUD_CLIENT_UPDATE_STORAGE`, This need to be set in the "macros" section of `mbed_app.json`. Choices are ARM_UCP_FLASHIAP_BLOCKDEVICE and ARM_UCP_FLASHIAP. This determines whether the firmware is stored on a blockdevice or internal flash. If blockdevice is used `ARM_UC_USE_PAL_BLOCKDEVICE=1` must also be set.
38
46
1.`update-client.storage-address`, The address in sd block device or internal flash where the firmware candidates are stored. **Must align to flash erase boundary**
39
47
1.`update-client.storage-size`, total size on the block device or internal flash reserved for firmware storage. It will be rounded up to align with flash erase sector size automatically.
40
48
1.`update-client.storage-locations`, The number of slots in the firmware storage.
0 commit comments