Skip to content

Commit b753db9

Browse files
Chris TrowbridgeSeppo Takalo
authored andcommitted
Add support for the EP_AGORA target
1 parent 94d2ade commit b753db9

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
{
2+
"requires": ["bare-metal",
3+
"rtos-api",
4+
"update-client",
5+
"storage",
6+
"storage_filesystem",
7+
"SecureStore",
8+
"storage_tdb_internal",
9+
"mbed-bootloader",
10+
"mbedtls",
11+
"system-storage",
12+
"filesystem",
13+
"filesystemstore",
14+
"littlefs",
15+
"fat_chan",
16+
"spif",
17+
"spif-driver",
18+
"qspif",
19+
"sd",
20+
"flashiap-block-device",
21+
"direct-access-devicekey",
22+
"tdbstore",
23+
"kv-config",
24+
"kv-global-api",
25+
"kv-map",
26+
"device_key"
27+
],
28+
"config": {
29+
"documentation": {
30+
"options": [
31+
"The configuration for boards is:",
32+
"- Firmware storage is on an external SPI Flash(SPIF) block device",
33+
"- KVStore is on an external SPI Flash block device",
34+
"The flash regions are as follows:",
35+
"1. Bootloader - 32KiB from the beginning of flash",
36+
"2. KVSTORE - 2 flash sectors immediately following the bootloader",
37+
"3. Active App Metadata Header - (1KiB/2KiB) from the end of KVSTORE",
38+
"4. Active App - From end of header to the end of flash",
39+
"+--------------------------+",
40+
"| |",
41+
"| |",
42+
"| |",
43+
"| Active App |",
44+
"| |",
45+
"| |",
46+
"| |",
47+
"+--------------------------+ <-+ mbed-bootloader.application-start-address",
48+
"|Active App Metadata Header|",
49+
"+--------------------------+ <-+ update-client.application-details",
50+
"| |",
51+
"| KVSTORE |",
52+
"| |",
53+
"+--------------------------+ <-+ storage_tdb_internal.internal_base_address",
54+
"| |",
55+
"| Bootloader |",
56+
"| |",
57+
"+--------------------------+ <-+ 0",
58+
"Firmware Candidate Storage is on external SPIF device at an offset of 0 MiB.",
59+
"The storage size is the size of the maximum application size (i.e. Active",
60+
"Application region size) multiplied by the number of storage-locations.",
61+
"(storage-locations is set to 1 in this configuration)",
62+
"+--------------------------+<-+ End of SPIF block device",
63+
"| |",
64+
"+--------------------------+<-+ update-client.storage-size + update-client.storage-address",
65+
"| |",
66+
"+--------------------------+",
67+
"| |",
68+
"| Firmware Candidate 0 |",
69+
"| |",
70+
"+--------------------------+",
71+
"| Firmware Candidate 0 |",
72+
"| Metadata Header |",
73+
"+--------------------------+ <-+ update-client.storage-address (1024 * 1024)",
74+
"| |",
75+
"| External KVStore |",
76+
"| Size: 1MB |",
77+
"| |",
78+
"+--------------------------+ <-+ Start of SPIF block device (i.e. 0x0); "
79+
]
80+
}
81+
},
82+
"macros": [
83+
"ARM_UC_USE_PAL_BLOCKDEVICE=1",
84+
"MBED_CLOUD_CLIENT_UPDATE_STORAGE=ARM_UCP_FLASHIAP_BLOCKDEVICE",
85+
"MBED_BOOTLOADER_ACTIVE_HEADER_REGION_SIZE=1024",
86+
"APP_KVSTORE_SIZE=(2*16*1024)"
87+
],
88+
"target_overrides": {
89+
"*": {
90+
"target.default_lib" : "small",
91+
"platform.use-mpu" : false,
92+
"platform.default-serial-baud-rate" : 115200,
93+
"update-client.firmware-header-version" : "2",
94+
"target.restrict_size" : "0x8000",
95+
"storage.storage_type" : "FILESYSTEM",
96+
"storage_filesystem.filesystem" : "LITTLE",
97+
"storage_filesystem.blockdevice" : "SPIF",
98+
"storage_filesystem.external_size" : "(1024 * 1024)",
99+
"storage_filesystem.external_base_address" : "(0)",
100+
"storage_filesystem.rbp_internal_size" : "(APP_KVSTORE_SIZE)",
101+
"storage_filesystem.internal_base_address" : "(MBED_ROM_START + MBED_BOOTLOADER_SIZE)",
102+
"update-client.application-details" : "(MBED_CONF_STORAGE_FILESYSTEM_INTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_RBP_INTERNAL_SIZE)",
103+
"mbed-bootloader.application-start-address" : "(MBED_CONF_UPDATE_CLIENT_APPLICATION_DETAILS + MBED_BOOTLOADER_ACTIVE_HEADER_REGION_SIZE)",
104+
"target.components_add" : ["SPIF"],
105+
"update-client.storage-address" : "(MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_BASE_ADDRESS + MBED_CONF_STORAGE_FILESYSTEM_EXTERNAL_SIZE)",
106+
"update-client.storage-size" : "((MBED_ROM_START + MBED_ROM_SIZE - MBED_CONF_MBED_BOOTLOADER_APPLICATION_START_ADDRESS) * MBED_CONF_UPDATE_CLIENT_STORAGE_LOCATIONS)",
107+
"update-client.storage-locations" : 1
108+
},
109+
"EP_AGORA": {
110+
"target.static_memory_defines" : true,
111+
"target.features_remove" : ["CRYPTOCELL310"],
112+
"target.macros_remove" : ["MBEDTLS_CONFIG_HW_SUPPORT"],
113+
"target.macros_add" : ["NRFX_RNG_ENABLED=1", "RNG_ENABLED=1", "NRF_QUEUE_ENABLED=1"],
114+
"target.OUTPUT_EXT" : "bin"
115+
}
116+
}
117+
}

0 commit comments

Comments
 (0)