|
1 | 1 | {
|
2 | 2 | "macros": [
|
3 | 3 | "MBEDTLS_USER_CONFIG_FILE=\"mbedtls_mbed_client_config.h\"",
|
4 |
| - "PAL_USE_FATFS_SD=1", |
5 |
| - "MAX_FIRMWARE_LOCATIONS=1", |
6 | 4 | "MAX_COPY_RETRIES=1",
|
7 | 5 | "SHOW_PROGRESS_BAR=1",
|
8 | 6 | "MAX_BOOT_RETRIES=3",
|
9 |
| - "ARM_UC_USE_PAL_CRYPTO=0", |
10 | 7 | "Mutex=PlatformMutex",
|
11 |
| - "ARM_UC_USE_PAL_BLOCKDEVICE=1", |
12 | 8 | "PAL_USE_INTERNAL_FLASH=1",
|
13 | 9 | "PAL_THREAD_SAFETY=0",
|
14 |
| - "ARM_UC_USE_SOTP=1" |
| 10 | + "ARM_UC_USE_PAL_CRYPTO=0", |
| 11 | + "ARM_UC_USE_SOTP=1", |
| 12 | + "ARM_UC_USE_PAL_BLOCKDEVICE=1", |
| 13 | + "MBED_CLOUD_CLIENT_UPDATE_STORAGE=ARM_UCP_FLASHIAP_BLOCKDEVICE" |
15 | 14 | ],
|
16 | 15 | "config": {
|
17 |
| - "firmware_metadata_header_address": { |
18 |
| - "help": "Firmware metadata header in flash", |
| 16 | + "application-start-address": { |
| 17 | + "help": "Address of the active application firmware in flash", |
| 18 | + "value": null |
| 19 | + }, |
| 20 | + "max-application-size": { |
| 21 | + "help": "Maximum size of the active application", |
19 | 22 | "value": null
|
20 | 23 | },
|
21 |
| - "firmware_metadata_header_size": { |
22 |
| - "help": "Firmware metadata header size", |
| 24 | + "sotp-section-1-address": { |
| 25 | + "help": "Flash sector address for SOTP sector 1", |
| 26 | + "macro_name": "PAL_INTERNAL_FLASH_SECTION_1_ADDRESS", |
23 | 27 | "value": null
|
24 | 28 | },
|
25 |
| - "serial_baudrate": { |
26 |
| - "help": "Terminal default baudrate", |
27 |
| - "value": 115200 |
| 29 | + "sotp-section-1-size": { |
| 30 | + "help": "Flash sector size for SOTP sector 1", |
| 31 | + "macro_name": "PAL_INTERNAL_FLASH_SECTION_1_SIZE", |
| 32 | + "value": null |
| 33 | + }, |
| 34 | + "sotp-section-2-address": { |
| 35 | + "help": "Flash sector address for SOTP sector 2", |
| 36 | + "macro_name": "PAL_INTERNAL_FLASH_SECTION_2_ADDRESS", |
| 37 | + "value": null |
| 38 | + }, |
| 39 | + "sotp-section-2-size": { |
| 40 | + "help": "Flash sector size for SOTP sector 2", |
| 41 | + "macro_name": "PAL_INTERNAL_FLASH_SECTION_2_SIZE", |
| 42 | + "value": null |
28 | 43 | }
|
29 | 44 | },
|
30 | 45 | "target_overrides": {
|
31 | 46 | "*": {
|
32 |
| - "target.features_add": ["COMMON_PAL"], |
33 | 47 | "target.features_remove": ["LWIP"],
|
| 48 | + "target.features_add": ["COMMON_PAL"], |
34 | 49 | "platform.stdio-baud-rate": 115200,
|
| 50 | + "platform.stdio-flush-at-exit": false, |
35 | 51 | "update-client.storage-address": "1024*1024*64",
|
36 | 52 | "update-client.storage-size": "1024*1024",
|
37 |
| - "update-client.storage-locations": "MAX_FIRMWARE_LOCATIONS", |
38 |
| - "platform.stdio-flush-at-exit": false, |
| 53 | + "update-client.storage-locations": 1, |
39 | 54 | "update-client.firmware-header-version": "2"
|
40 | 55 | },
|
41 | 56 | "K64F": {
|
42 |
| - "firmware_metadata_header_address": "0x20000", |
43 |
| - "update-client.application-details": "0x20000", |
44 |
| - "firmware_metadata_header_size": "0x400" |
| 57 | + "sotp-section-1-address" : "32*1024", |
| 58 | + "sotp-section-1-size" : "4*1024", |
| 59 | + "sotp-section-2-address" : "36*1024", |
| 60 | + "sotp-section-2-size" : "4*1024", |
| 61 | + "update-client.application-details": "40*1024", |
| 62 | + "application-start-address" : "41*1024", |
| 63 | + "max-application-size" : "(1024*1024-MBED_CONF_APP_APPLICATION_START_ADDRESS)" |
45 | 64 | },
|
46 | 65 | "K66F": {
|
47 |
| - "firmware_metadata_header_address": "0x20000", |
48 |
| - "update-client.application-details": "0x20000", |
49 |
| - "firmware_metadata_header_size": "0x400" |
| 66 | + "sotp-section-1-address" : "32*1024", |
| 67 | + "sotp-section-1-size" : "4*1024", |
| 68 | + "sotp-section-2-address" : "36*1024", |
| 69 | + "sotp-section-2-size" : "4*1024", |
| 70 | + "update-client.application-details": "40*1024", |
| 71 | + "application-start-address" : "41*1024", |
| 72 | + "max-application-size" : "(2048*1024-MBED_CONF_APP_APPLICATION_START_ADDRESS)" |
50 | 73 | },
|
51 | 74 | "KW24D": {
|
52 |
| - "firmware_metadata_header_address": "0x20000", |
53 |
| - "update-client.application-details": "0x19F04", |
54 |
| - "firmware_metadata_header_size": "0x400" |
55 |
| - }, |
56 |
| - "NUCLEO_F429ZI": { |
57 |
| - "firmware_metadata_header_address": "0x08020000", |
58 |
| - "update-client.application-details": "0x08020000", |
59 |
| - "firmware_metadata_header_size": "0x400" |
| 75 | + "sotp-section-1-address" : "32*1024", |
| 76 | + "sotp-section-1-size" : "2*1024", |
| 77 | + "sotp-section-2-address" : "34*1024", |
| 78 | + "sotp-section-2-size" : "2*1024", |
| 79 | + "update-client.application-details": "36*1024", |
| 80 | + "application-start-address" : "37*1024", |
| 81 | + "max-application-size" : "(512*1024-MBED_CONF_APP_APPLICATION_START_ADDRESS)" |
60 | 82 | },
|
61 | 83 | "NUCLEO_L476RG": {
|
62 |
| - "firmware_metadata_header_address": "0x08020000", |
63 |
| - "update-client.application-details": "0x08020000", |
64 |
| - "firmware_metadata_header_size": "0x800" |
| 84 | + "sotp-section-1-address" : "32*1024", |
| 85 | + "sotp-section-1-size" : "2*1024", |
| 86 | + "sotp-section-2-address" : "34*1024", |
| 87 | + "sotp-section-2-size" : "2*1024", |
| 88 | + "update-client.application-details": "36*1024", |
| 89 | + "application-start-address" : "38*1024", |
| 90 | + "max-application-size" : "(1024*1024-MBED_CONF_APP_APPLICATION_START_ADDRESS)" |
| 91 | + }, |
| 92 | + "DISCO_L476VG": { |
| 93 | + "sotp-section-1-address" : "32*1024", |
| 94 | + "sotp-section-1-size" : "2*1024", |
| 95 | + "sotp-section-2-address" : "34*1024", |
| 96 | + "sotp-section-2-size" : "2*1024", |
| 97 | + "update-client.application-details": "36*1024", |
| 98 | + "application-start-address" : "38*1024", |
| 99 | + "max-application-size" : "(1024*1024-MBED_CONF_APP_APPLICATION_START_ADDRESS)" |
| 100 | + }, |
| 101 | + "NUCLEO_F429ZI": { |
| 102 | + "sotp-section-1-address" : "32*1024", |
| 103 | + "sotp-section-1-size" : "16*1024", |
| 104 | + "sotp-section-2-address" : "48*1024", |
| 105 | + "sotp-section-2-size" : "16*1024", |
| 106 | + "update-client.application-details": "64*1024", |
| 107 | + "application-start-address" : "65*1024", |
| 108 | + "max-application-size" : "(2048*1024-MBED_CONF_APP_APPLICATION_START_ADDRESS)" |
65 | 109 | },
|
66 | 110 | "UBLOX_EVK_ODIN_W2": {
|
67 | 111 | "target.device_has_remove": ["EMAC"],
|
68 |
| - "firmware_metadata_header_address": "0x08020000", |
69 |
| - "update-client.application-details": "0x08020000", |
70 |
| - "firmware_metadata_header_size": "0x400" |
| 112 | + "sotp-section-1-address" : "32*1024", |
| 113 | + "sotp-section-1-size" : "16*1024", |
| 114 | + "sotp-section-2-address" : "48*1024", |
| 115 | + "sotp-section-2-size" : "16*1024", |
| 116 | + "update-client.application-details": "64*1024", |
| 117 | + "application-start-address" : "65*1024", |
| 118 | + "max-application-size" : "(2048*1024-MBED_CONF_APP_APPLICATION_START_ADDRESS)" |
71 | 119 | },
|
72 | 120 | "UBLOX_C030_U201": {
|
73 |
| - "firmware_metadata_header_address": "0x08020000", |
74 |
| - "update-client.application-details": "0x08020000", |
75 |
| - "firmware_metadata_header_size": "0x800" |
76 |
| - }, |
77 |
| - "DISCO_L476VG": { |
78 |
| - "firmware_metadata_header_address": "0x08020000", |
79 |
| - "update-client.application-details": "0x08020000", |
80 |
| - "firmware_metadata_header_size": "0x800" |
| 121 | + "sotp-section-1-address" : "32*1024", |
| 122 | + "sotp-section-1-size" : "16*1024", |
| 123 | + "sotp-section-2-address" : "48*1024", |
| 124 | + "sotp-section-2-size" : "16*1024", |
| 125 | + "update-client.application-details": "64*1024", |
| 126 | + "application-start-address" : "65*1024", |
| 127 | + "max-application-size" : "(1024*1024-MBED_CONF_APP_APPLICATION_START_ADDRESS)" |
81 | 128 | }
|
82 | 129 | }
|
83 | 130 | }
|
0 commit comments