Skip to content

Commit 21f63a8

Browse files
Tommi Käsmäevedon
authored andcommitted
New Config: Add target DISCO_L475VG_IOT01A to internal flash configuration (ARMmbed#176)
* Use unique macro name: 'FLASH_BANK_SIZE' clashes with another macro on TARGET_STM32L4. * Add DISCO_L475VG_IOT01A to internal flash config
1 parent aa0d0d5 commit 21f63a8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

configs/internal_flash_no_rot.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"MBED_CLOUD_CLIENT_UPDATE_STORAGE=ARM_UCP_FLASHIAP",
5454
"MBED_BOOTLOADER_SIZE=APPLICATION_SIZE",
5555
"MBED_BOOTLOADER_ACTIVE_HEADER_REGION_SIZE=1024",
56-
"FLASH_BANK_SIZE=MBED_ROM_SIZE/2"
56+
"MBED_BOOTLOADER_FLASH_BANK_SIZE=MBED_ROM_SIZE/2"
5757
],
5858
"target_overrides": {
5959
"*": {
@@ -64,9 +64,9 @@
6464
"target.restrict_size": "0x8000",
6565
"update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)",
6666
"mbed-bootloader.application-start-address": "(MBED_CONF_UPDATE_CLIENT_APPLICATION_DETAILS + MBED_BOOTLOADER_ACTIVE_HEADER_REGION_SIZE)",
67-
"mbed-bootloader.max-application-size" : "(MBED_ROM_START + FLASH_BANK_SIZE - MBED_CONF_MBED_BOOTLOADER_APPLICATION_START_ADDRESS)",
68-
"update-client.storage-address" : "(MBED_ROM_START + FLASH_BANK_SIZE + KVSTORE_SIZE)",
69-
"update-client.storage-size" : "(FLASH_BANK_SIZE - KVSTORE_SIZE)",
67+
"mbed-bootloader.max-application-size" : "(MBED_ROM_START + MBED_BOOTLOADER_FLASH_BANK_SIZE - MBED_CONF_MBED_BOOTLOADER_APPLICATION_START_ADDRESS)",
68+
"update-client.storage-address" : "(MBED_ROM_START + MBED_BOOTLOADER_FLASH_BANK_SIZE + KVSTORE_SIZE)",
69+
"update-client.storage-size" : "(MBED_BOOTLOADER_FLASH_BANK_SIZE - KVSTORE_SIZE)",
7070
"update-client.storage-locations" : 1
7171
},
7272
"K64F": {
@@ -84,6 +84,10 @@
8484
"NUCLEO_F303RE": {
8585
"kvstore-size": "2*24*1024",
8686
"update-client.storage-page": 1
87+
},
88+
"DISCO_L475VG_IOT01A": {
89+
"kvstore-size": "2*8*1024",
90+
"update-client.storage-page": 1
8791
}
8892
}
8993
}

0 commit comments

Comments
 (0)