|
| 1 | +{ |
| 2 | + "config": { |
| 3 | + "documentation": { |
| 4 | + "options": [ |
| 5 | + "The configuration for boards is:", |
| 6 | + "- Firmware storage is on an external SPI Flash(SPIF) block device", |
| 7 | + "- Internal KVStore only", |
| 8 | + "The flash regions are as follows:", |
| 9 | + "1. Bootloader - 32KiB from the beginning of flash", |
| 10 | + "2. KVSTORE - 2 flash sectors immediately following the bootloader", |
| 11 | + "3. Active App Metadata Header - (1KiB/2KiB) from the end of KVSTORE", |
| 12 | + "4. Active App - From end of header to the end of flash", |
| 13 | + "+--------------------------+", |
| 14 | + "| |", |
| 15 | + "| |", |
| 16 | + "| |", |
| 17 | + "| Active App |", |
| 18 | + "| |", |
| 19 | + "| |", |
| 20 | + "| |", |
| 21 | + "+--------------------------+ <-+ mbed-bootloader.application-start-address", |
| 22 | + "|Active App Metadata Header|", |
| 23 | + "+--------------------------+ <-+ update-client.application-details", |
| 24 | + "| |", |
| 25 | + "| KVSTORE |", |
| 26 | + "| |", |
| 27 | + "+--------------------------+ <-+ storage_tdb_internal.internal_base_address", |
| 28 | + "| |", |
| 29 | + "| Bootloader |", |
| 30 | + "| |", |
| 31 | + "+--------------------------+ <-+ 0", |
| 32 | + "Firmware Candidate Storage is on external SPIF device at an offset of 0 MiB.", |
| 33 | + "The storage size is the size of the maximum application size (i.e. Active", |
| 34 | + "Application region size) multiplied by the number of storage-locations.", |
| 35 | + "(storage-locations is set to 1 in this configuration)", |
| 36 | + "+--------------------------+<-+ End of SPIF block device", |
| 37 | + "| |", |
| 38 | + "+--------------------------+<-+ update-client.storage-size + update-client.storage-address", |
| 39 | + "| |", |
| 40 | + "+--------------------------+", |
| 41 | + "| |", |
| 42 | + "| Firmware Candidate 0 |", |
| 43 | + "| |", |
| 44 | + "+--------------------------+", |
| 45 | + "| Firmware Candidate 0 |", |
| 46 | + "| Metadata Header |", |
| 47 | + "+--------------------------+ <-+ Start of SPIF block device (i.e. 0x0); update-client.storage-address" |
| 48 | + ] |
| 49 | + } |
| 50 | + }, |
| 51 | + "macros": [ |
| 52 | + "ARM_UC_USE_PAL_BLOCKDEVICE=1", |
| 53 | + "MBED_CLOUD_CLIENT_UPDATE_STORAGE=ARM_UCP_FLASHIAP_BLOCKDEVICE", |
| 54 | + "MBED_BOOTLOADER_ACTIVE_HEADER_REGION_SIZE=1024" |
| 55 | + ], |
| 56 | + "target_overrides": { |
| 57 | + "*": { |
| 58 | + "platform.use-mpu" : false, |
| 59 | + "platform.stdio-baud-rate" : 115200, |
| 60 | + "platform.stdio-flush-at-exit" : false, |
| 61 | + "update-client.firmware-header-version" : "2", |
| 62 | + "target.restrict_size" : "0x8000", |
| 63 | + "storage.storage_type" : "TDB_INTERNAL", |
| 64 | + "storage_tdb_internal.internal_base_address": "(MBED_ROM_START+MBED_BOOTLOADER_SIZE)", |
| 65 | + "storage_tdb_internal.internal_size" : "(16*1024)", |
| 66 | + "update-client.application-details" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE+MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE)", |
| 67 | + "mbed-bootloader.application-start-address" : "(MBED_CONF_UPDATE_CLIENT_APPLICATION_DETAILS + MBED_BOOTLOADER_ACTIVE_HEADER_REGION_SIZE)", |
| 68 | + "target.components_add" : ["SPIF"], |
| 69 | + "update-client.storage-address" : "0", |
| 70 | + "update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - MBED_CONF_MBED_BOOTLOADER_APPLICATION_START_ADDRESS) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)", |
| 71 | + "update-client.storage-locations" : 1, |
| 72 | + "target.device_has_remove" : [ "LPTICKER" ] |
| 73 | + }, |
| 74 | + "NUCLEO_F303RE": { |
| 75 | + "target.restrict_size" : "0x9000", |
| 76 | + "mbed-bootloader.bootloader-size": "(36*1024)", |
| 77 | + "spif-driver.SPI_MOSI" : "PC_12", |
| 78 | + "spif-driver.SPI_MISO" : "PC_11", |
| 79 | + "spif-driver.SPI_CLK" : "PC_10", |
| 80 | + "spif-driver.SPI_CS" : "PA_15", |
| 81 | + "update-client.storage-page" : 2 |
| 82 | + } |
| 83 | + } |
| 84 | +} |
0 commit comments