@@ -180,13 +180,13 @@ The update firmware candidate is still stored on sd-card.
180
180
181
181
Given the above flash layout the following configuration need to change in the mbed_app.json:
182
182
183
- 1 . "nvstore.area_1_address": "(0x08000000+(2* 1024-2* 128)* 1024)"
184
- 1 . "nvstore.area_1_size": "(128* 1024)"
185
- 1 . "nvstore.area_2_address": "(0x08000000+(2* 1024-128)* 1024)"
186
- 1 . "nvstore.area_2_size": "(128* 1024)"
187
- 1 . "update-client.application-details": "(0x08000000+3* 16* 1024)"
188
- 1 . "application-start-address": "(0x08000000+(3* 16+1)* 1024)"
189
- 1 . "max-application-size" : "((1024* 2-128* 2-3* 16-1)* 1024)"
183
+ 1 . ` "nvstore.area_1_address": "(0x08000000+(2*1024-2*128)*1024)" `
184
+ 1 . ` "nvstore.area_1_size": "(128*1024)" `
185
+ 1 . ` "nvstore.area_2_address": "(0x08000000+(2*1024-128)*1024)" `
186
+ 1 . ` "nvstore.area_2_size": "(128*1024)" `
187
+ 1 . ` "update-client.application-details": "(0x08000000+3*16*1024)" `
188
+ 1 . ` "application-start-address": "(0x08000000+(3*16+1)*1024)" `
189
+ 1 . ` "max-application-size" : "((1024*2-128*2-3*16-1)*1024)" `
190
190
191
191
Now compile your bootloader. Flash and run the bootloader, on the serial uart you will see the following printout:
192
192
@@ -198,20 +198,20 @@ Keep a note of the `boot_loader_info_address` which we will use in the next step
198
198
199
199
In mbed_app.json, change the following:
200
200
201
- 1 . "update-client.application-details" : "(0x08000000+3* 16* 1024)"
202
- 1 . "update-client.bootloader-details" : "<boot_loader_info_address>"
201
+ 1 . ` "update-client.application-details" : "(0x08000000+3*16*1024)" `
202
+ 1 . ` "update-client.bootloader-details" : "<boot_loader_info_address>" `
203
203
204
204
In mbed_lib.json change the following:
205
205
206
- 1 . "sotp-section-1-address": "(0x08000000+(2* 1024-2* 128)* 1024)",
207
- 1 . "sotp-section-1-size": "(128* 1024)",
208
- 1 . "sotp-section-2-address": "(0x08000000+(2* 1024-128)* 1024)",
209
- 1 . "sotp-section-2-size": "(128* 1024)"
206
+ 1 . ` "sotp-section-1-address": "(0x08000000+(2*1024-2*128)*1024)", `
207
+ 1 . ` "sotp-section-1-size": "(128*1024)", `
208
+ 1 . ` "sotp-section-2-address": "(0x08000000+(2*1024-128)*1024)", `
209
+ 1 . ` "sotp-section-2-size": "(128*1024)" `
210
210
211
211
Also add the following in mbed_app.json:
212
212
213
- 1 . "target.app_offset": "0x800c400",
214
- 1 . "target.header_offset": "0x800c000",
215
- 1 . "target.bootloader_img": "<path_to_your_newly_built_image>"
213
+ 1 . ` "target.app_offset": "0x800c400", `
214
+ 1 . ` "target.header_offset": "0x800c000", `
215
+ 1 . ` "target.bootloader_img": "<path_to_your_newly_built_image>" `
216
216
217
217
Now you can build the application following the [ Pelion Device Management Platform Documentation] ( https://cloud.mbed.com/docs/current/updating-firmware/updating-end-to-end-tutorials.html ) .
0 commit comments