Skip to content

Commit 6223f55

Browse files
committed
Make mbed_app.json more readable
1 parent 5dbff35 commit 6223f55

File tree

1 file changed

+76
-46
lines changed

1 file changed

+76
-46
lines changed

mbed_app.json

Lines changed: 76 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
{
2-
"requires": ["bare-metal", "mbedtls", "mcuboot", "flashiap-block-device", "spif-driver", "qspif", "mbed-trace", "filesystem", "fat_chan", "littlefs", "rtos", "cmsis-cmsis5-rtos2", "events"],
3-
"macros": ["MBED_FAULT_HANDLER_DISABLED", "USE_USB_HS", "LOWSPEED=1", "MBEDTLS_USER_CONFIG_FILE=\"mbedtls_config.h\""],
2+
"requires": [
3+
"bare-metal",
4+
"mbedtls",
5+
"mcuboot",
6+
"flashiap-block-device",
7+
"spif-driver",
8+
"qspif",
9+
"mbed-trace",
10+
"filesystem",
11+
"fat_chan",
12+
"littlefs",
13+
"rtos",
14+
"cmsis-cmsis5-rtos2",
15+
"events"
16+
],
17+
"macros": [
18+
"MBED_FAULT_HANDLER_DISABLED",
19+
"MBEDTLS_USER_CONFIG_FILE=\"mbedtls_config.h\""
20+
],
421
"config": {
522
"serial-bootloader-enable": {
623
"help": "Build bootloader with serial update support",
@@ -11,26 +28,40 @@
1128
"*": {
1229
"target.restrict_size": "0x20000",
1330
"target.c_lib": "small",
14-
"mcuboot.log-level": "MCUBOOT_LOG_LEVEL_INFO",
15-
"mbed-trace.enable": false,
16-
"mbed-trace.fea-ipv6": false
17-
},
18-
"PORTENTA_H7_M7": {
19-
"target.clock_source": "USE_PLL_HSE_EXTC",
20-
"target.use-mpu": false,
21-
"target.components_remove" : ["WHD", "4343W_FS", "CYW43XXX"],
22-
"target.extra_labels_remove" : ["CORDIO"],
23-
"target.features_remove" : ["BLE"],
24-
"target.device_has_remove": ["USBDEVICE", "EMAC", "CAN", "SPI_ASYNCH", "SPISLAVE", "SPI","SERIAL_FC", "PWMOUT", "ANALOGIN", "ANALOGOUT", "I2CSLAVE", "I2C_ASYNC", "OSPI", "TRNG", "DAC", "CRC", "WATCHDOG", "RTC", "LPTICKER", "SLEEP"],
2531
"target.printf_lib": "minimal-printf",
2632
"target.i2c_timing_value_algo": false,
33+
"target.extra_labels_remove" : ["CORDIO"],
34+
"target.features_remove" : ["BLE"],
35+
"target.device_has_remove": [
36+
"USBDEVICE",
37+
"EMAC",
38+
"CAN",
39+
"SPI_ASYNCH",
40+
"SPISLAVE",
41+
"SPI",
42+
"SERIAL_FC",
43+
"PWMOUT",
44+
"ANALOGIN",
45+
"ANALOGOUT",
46+
"I2CSLAVE",
47+
"I2C_ASYNC",
48+
"OSPI",
49+
"TRNG",
50+
"DAC",
51+
"CRC",
52+
"WATCHDOG",
53+
"RTC",
54+
"LPTICKER",
55+
"SLEEP"
56+
],
2757
"platform.minimal-printf-enable-floating-point": false,
2858
"platform.minimal-printf-enable-64-bit": false,
2959
"platform.stdio-flush-at-exit": false,
3060
"platform.stdio-baud-rate": 115200,
3161
"fat_chan.ff_use_mkfs": 0,
3262
"fat_chan.ff_use_lfn": 0,
3363
"fat_chan.ff_fs_rpath": 0,
64+
"mcuboot.log-level": "MCUBOOT_LOG_LEVEL_INFO",
3465
"mcuboot.primary-slot-address": "0x8020000",
3566
"mcuboot.slot-size": "0x1E0000",
3667
"mcuboot.scratch-address": "0x9000000",
@@ -40,49 +71,48 @@
4071
"mcuboot.bootstrap": true,
4172
"mcuboot.application-hooks": true,
4273
"mcuboot.application-littlefs": true,
43-
"mcuboot.application-sdcard": true,
4474
"mcuboot.application-dfu": true,
4575
"mcuboot.signature-algorithm": "SIGNATURE_TYPE_EC256",
4676
"mcuboot.encrypt-ec256": true,
4777
"mcuboot.include-keys": null,
4878
"mcuboot.bootloader-build": false,
4979
"mcuboot.encrypt-scratch": true,
50-
"mcuboot.swap-buf-size": 131072
80+
"mcuboot.swap-buf-size": 131072,
81+
"mbed-trace.enable": false,
82+
"mbed-trace.fea-ipv6": false
83+
},
84+
"PORTENTA_H7_M7": {
85+
"target.clock_source": "USE_PLL_HSE_EXTC",
86+
"target.use-mpu": false,
87+
"target.macros_add": [
88+
"USE_USB_HS",
89+
"LOWSPEED=1"
90+
],
91+
"target.components_remove" : [
92+
"WHD",
93+
"4343W_FS",
94+
"CYW43XXX"
95+
],
96+
"mcuboot.application-sdcard": true
5197
},
5298
"NICLA_VISION": {
5399
"target.clock_source": "USE_PLL_HSE_EXTC",
54100
"target.use-mpu": false,
55-
"target.components_remove" : ["WHD", "4343W_FS", "CYW43XXX", "SE050"],
56-
"target.extra_labels_remove" : ["CORDIO"],
57-
"target.features_remove" : ["BLE"],
58-
"target.device_has_remove": ["USBDEVICE", "EMAC", "CAN", "SPI_ASYNCH", "SPISLAVE", "SPI","SERIAL_FC", "PWMOUT", "ANALOGIN", "ANALOGOUT", "I2CSLAVE", "I2C_ASYNC", "OSPI", "TRNG", "DAC", "CRC", "WATCHDOG", "RTC", "LPTICKER", "SLEEP"],
59-
"target.printf_lib": "minimal-printf",
60-
"target.i2c_timing_value_algo": false,
61-
"target.macros_add":["BOARD_HAS_VIDEO=0", "BOARD_HAS_ETHERNET=0"],
62-
"platform.minimal-printf-enable-floating-point": false,
63-
"platform.minimal-printf-enable-64-bit": false,
64-
"platform.stdio-flush-at-exit": false,
65-
"platform.stdio-baud-rate": 115200,
66-
"fat_chan.ff_use_mkfs": 0,
67-
"fat_chan.ff_use_lfn": 0,
68-
"fat_chan.ff_fs_rpath": 0,
69-
"mcuboot.primary-slot-address": "0x8020000",
70-
"mcuboot.slot-size": "0x1E0000",
71-
"mcuboot.scratch-address": "0x9000000",
72-
"mcuboot.scratch-size": "0x20000",
73-
"mcuboot.max-img-sectors": "0x3C0",
74-
"mcuboot.max-align": 32,
75-
"mcuboot.bootstrap": true,
76-
"mcuboot.application-hooks": true,
77-
"mcuboot.application-littlefs": true,
78-
"mcuboot.application-sdcard": null,
79-
"mcuboot.application-dfu": true,
80-
"mcuboot.signature-algorithm": "SIGNATURE_TYPE_EC256",
81-
"mcuboot.encrypt-ec256": true,
82-
"mcuboot.include-keys": null,
83-
"mcuboot.bootloader-build": false,
84-
"mcuboot.encrypt-scratch": true,
85-
"mcuboot.swap-buf-size": 131072
101+
"target.macros_add": [
102+
"USE_USB_HS",
103+
"LOWSPEED=1"
104+
],
105+
"target.components_remove" : [
106+
"WHD",
107+
"4343W_FS",
108+
"CYW43XXX",
109+
"SE050"
110+
],
111+
"target.macros_add":[
112+
"BOARD_HAS_VIDEO=0",
113+
"BOARD_HAS_ETHERNET=0"
114+
],
115+
"mcuboot.application-sdcard": null
86116
}
87117
}
88118
}

0 commit comments

Comments
 (0)