|
21 | 21 | "mcuboot.log-enable": true,
|
22 | 22 | "mcuboot.log-level": "MCUBOOT_LOG_LEVEL_INFO", // Change INFO to DEBUG for debug prints
|
23 | 23 | "mbed-trace.enable": true,
|
24 |
| - "mbed-trace.max-level": "TRACE_LEVEL_DEBUG", |
| 24 | + "mbed-trace.max-level": "TRACE_LEVEL_INFO", // Change INFO to DEBUG for debug prints |
25 | 25 | "mbed-trace.fea-ipv6": false,
|
26 | 26 |
|
27 | 27 | // Uncomment to enable encryption of the image
|
28 | 28 | // "mcuboot.encrypt-rsa": true
|
29 | 29 | },
|
30 |
| - // "NRF52840_DK": { |
31 |
| - // "target.features_remove": ["CRYPTOCELL310"], |
32 |
| - // "target.macros_remove": ["MBEDTLS_CONFIG_HW_SUPPORT"], |
33 |
| - // "mcuboot.primary-slot-address": "0x20000", |
34 |
| - // "mcuboot.slot-size": "0xC0000", |
35 |
| - // "mcuboot.scratch-address": "0xE0000", |
36 |
| - // "mcuboot.scratch-size": "0x20000", |
37 |
| - // "mcuboot.max-img-sectors": "0x180", |
38 |
| - // "mcuboot.read-granularity": 4, |
39 |
| - // "qspif.QSPI_MIN_PROG_SIZE": 4 |
40 |
| - // }, |
| 30 | + |
41 | 31 | // "EP_AGORA": {
|
42 | 32 | // "target.features_remove": ["CRYPTOCELL310"],
|
43 | 33 | // "target.macros_remove": ["MBEDTLS_CONFIG_HW_SUPPORT"],
|
|
176 | 166 | // Since STM32 nucleo boards have no external block device, keep everything in the MCU flash.
|
177 | 167 | "app.secondary-slot-in-flash": true,
|
178 | 168 | "app.secondary-slot-flash-start-addr": 0x0804F000 // primary-slot-address + slot-size
|
| 169 | + }, |
| 170 | + |
| 171 | + "NRF52840_DK": { |
| 172 | + "target.features_remove": ["CRYPTOCELL310"], |
| 173 | + "target.macros_remove": ["MBEDTLS_CONFIG_HW_SUPPORT"], |
| 174 | + |
| 175 | + "target.memory_bank_config": { |
| 176 | + "IROM1": { |
| 177 | + "size": 0x20000 |
| 178 | + } |
| 179 | + }, |
| 180 | + |
| 181 | + // Primary slot starts right after the bootloader and takes up 768k of flash |
| 182 | + "mcuboot.primary-slot-address": 0x20000, |
| 183 | + "mcuboot.slot-size": 0xC0000, |
| 184 | + |
| 185 | + // Scratch sector uses the last 128k of flash |
| 186 | + "mcuboot.scratch-address": 0xE0000, |
| 187 | + "mcuboot.scratch-size": 0x20000, |
| 188 | + |
| 189 | + // Max flash sectors per slot. 768k/4k = 192 |
| 190 | + "mcuboot.max-img-sectors": 192, |
| 191 | + |
| 192 | + // Flash is word addressable |
| 193 | + "mcuboot.read-granularity": 4, |
| 194 | + |
179 | 195 | }
|
180 | 196 | }
|
181 | 197 | }
|
0 commit comments