Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 133df88

Browse files
committedNov 22, 2022
Add dedicated mbed_app file for each board
1 parent 3a2e16f commit 133df88

4 files changed

+394
-0
lines changed
 

‎mbed_app_nicla_vision.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
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+
],
21+
"config": {
22+
"serial-bootloader-enable": {
23+
"help": "Build bootloader with serial update support",
24+
"value": 0
25+
}
26+
},
27+
"target_overrides": {
28+
"NICLA_VISION": {
29+
"target.restrict_size": "0x20000",
30+
"target.c_lib": "small",
31+
"target.printf_lib": "minimal-printf",
32+
"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+
],
57+
"target.clock_source": "USE_PLL_HSE_EXTC",
58+
"target.use-mpu": false,
59+
"target.macros_add": [
60+
"USE_USB_HS",
61+
"LOWSPEED=1",
62+
"BOARD_HAS_VIDEO=0",
63+
"BOARD_HAS_ETHERNET=0"
64+
],
65+
"target.components_remove" : [
66+
"WHD",
67+
"4343W_FS",
68+
"CYW43XXX",
69+
"SE050"
70+
],
71+
"platform.minimal-printf-enable-floating-point": false,
72+
"platform.minimal-printf-enable-64-bit": false,
73+
"platform.stdio-flush-at-exit": false,
74+
"platform.stdio-baud-rate": 115200,
75+
"fat_chan.ff_use_mkfs": 0,
76+
"fat_chan.ff_use_lfn": 0,
77+
"fat_chan.ff_fs_rpath": 0,
78+
"mcuboot.log-level": "MCUBOOT_LOG_LEVEL_INFO",
79+
"mcuboot.primary-slot-address": "0x8020000",
80+
"mcuboot.slot-size": "0x1E0000",
81+
"mcuboot.scratch-address": "0x9000000",
82+
"mcuboot.scratch-size": "0x20000",
83+
"mcuboot.max-img-sectors": "0x3C0",
84+
"mcuboot.max-align": 32,
85+
"mcuboot.bootstrap": true,
86+
"mcuboot.application-hooks": true,
87+
"mcuboot.application-littlefs": true,
88+
"mcuboot.application-dfu": true,
89+
"mcuboot.application-sdcard": null,
90+
"mcuboot.signature-algorithm": "SIGNATURE_TYPE_EC256",
91+
"mcuboot.encrypt-ec256": true,
92+
"mcuboot.include-keys": null,
93+
"mcuboot.bootloader-build": false,
94+
"mcuboot.encrypt-scratch": true,
95+
"mcuboot.swap-buf-size": 131072,
96+
"mbed-trace.enable": false,
97+
"mbed-trace.fea-ipv6": false
98+
}
99+
}
100+
}

‎mbed_app_portenta.json

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
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+
],
21+
"config": {
22+
"serial-bootloader-enable": {
23+
"help": "Build bootloader with serial update support",
24+
"value": 0
25+
}
26+
},
27+
"target_overrides": {
28+
"PORTENTA_H7_M7": {
29+
"target.restrict_size": "0x20000",
30+
"target.c_lib": "small",
31+
"target.printf_lib": "minimal-printf",
32+
"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+
],
57+
"target.clock_source": "USE_PLL_HSE_EXTC",
58+
"target.use-mpu": false,
59+
"target.macros_add": [
60+
"USE_USB_HS",
61+
"LOWSPEED=1"
62+
],
63+
"target.components_remove" : [
64+
"WHD",
65+
"4343W_FS",
66+
"CYW43XXX"
67+
],
68+
"platform.minimal-printf-enable-floating-point": false,
69+
"platform.minimal-printf-enable-64-bit": false,
70+
"platform.stdio-flush-at-exit": false,
71+
"platform.stdio-baud-rate": 115200,
72+
"fat_chan.ff_use_mkfs": 0,
73+
"fat_chan.ff_use_lfn": 0,
74+
"fat_chan.ff_fs_rpath": 0,
75+
"mcuboot.log-level": "MCUBOOT_LOG_LEVEL_INFO",
76+
"mcuboot.primary-slot-address": "0x8020000",
77+
"mcuboot.slot-size": "0x1E0000",
78+
"mcuboot.scratch-address": "0x9000000",
79+
"mcuboot.scratch-size": "0x20000",
80+
"mcuboot.max-img-sectors": "0x3C0",
81+
"mcuboot.max-align": 32,
82+
"mcuboot.bootstrap": true,
83+
"mcuboot.application-hooks": true,
84+
"mcuboot.application-littlefs": true,
85+
"mcuboot.application-dfu": true,
86+
"mcuboot.application-sdcard": true,
87+
"mcuboot.signature-algorithm": "SIGNATURE_TYPE_EC256",
88+
"mcuboot.encrypt-ec256": true,
89+
"mcuboot.include-keys": null,
90+
"mcuboot.bootloader-build": false,
91+
"mcuboot.encrypt-scratch": true,
92+
"mcuboot.swap-buf-size": 131072,
93+
"mbed-trace.enable": false,
94+
"mbed-trace.fea-ipv6": false
95+
}
96+
}
97+
}

‎mbed_app_portenta_lite.json

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
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+
],
21+
"config": {
22+
"serial-bootloader-enable": {
23+
"help": "Build bootloader with serial update support",
24+
"value": 0
25+
}
26+
},
27+
"target_overrides": {
28+
"PORTENTA_H7_M7": {
29+
"target.restrict_size": "0x20000",
30+
"target.c_lib": "small",
31+
"target.printf_lib": "minimal-printf",
32+
"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+
],
57+
"target.clock_source": "USE_PLL_HSE_EXTC",
58+
"target.use-mpu": false,
59+
"target.macros_add": [
60+
"USE_USB_HS",
61+
"LOWSPEED=1",
62+
"BOARD_HAS_VIDEO=0",
63+
"BOARD_HAS_WIFI=0"
64+
],
65+
"target.components_remove" : [
66+
"WHD",
67+
"4343W_FS",
68+
"CYW43XXX"
69+
],
70+
"platform.minimal-printf-enable-floating-point": false,
71+
"platform.minimal-printf-enable-64-bit": false,
72+
"platform.stdio-flush-at-exit": false,
73+
"platform.stdio-baud-rate": 115200,
74+
"fat_chan.ff_use_mkfs": 0,
75+
"fat_chan.ff_use_lfn": 0,
76+
"fat_chan.ff_fs_rpath": 0,
77+
"mcuboot.log-level": "MCUBOOT_LOG_LEVEL_INFO",
78+
"mcuboot.primary-slot-address": "0x8020000",
79+
"mcuboot.slot-size": "0x1E0000",
80+
"mcuboot.scratch-address": "0x9000000",
81+
"mcuboot.scratch-size": "0x20000",
82+
"mcuboot.max-img-sectors": "0x3C0",
83+
"mcuboot.max-align": 32,
84+
"mcuboot.bootstrap": true,
85+
"mcuboot.application-hooks": true,
86+
"mcuboot.application-littlefs": true,
87+
"mcuboot.application-dfu": true,
88+
"mcuboot.application-sdcard": true,
89+
"mcuboot.signature-algorithm": "SIGNATURE_TYPE_EC256",
90+
"mcuboot.encrypt-ec256": true,
91+
"mcuboot.include-keys": null,
92+
"mcuboot.bootloader-build": false,
93+
"mcuboot.encrypt-scratch": true,
94+
"mcuboot.swap-buf-size": 131072,
95+
"mbed-trace.enable": false,
96+
"mbed-trace.fea-ipv6": false
97+
}
98+
}
99+
}

‎mbed_app_portenta_lite_connected.json

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
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+
],
21+
"config": {
22+
"serial-bootloader-enable": {
23+
"help": "Build bootloader with serial update support",
24+
"value": 0
25+
}
26+
},
27+
"target_overrides": {
28+
"PORTENTA_H7_M7": {
29+
"target.restrict_size": "0x20000",
30+
"target.c_lib": "small",
31+
"target.printf_lib": "minimal-printf",
32+
"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+
],
57+
"target.clock_source": "USE_PLL_HSE_EXTC",
58+
"target.use-mpu": false,
59+
"target.macros_add": [
60+
"USE_USB_HS",
61+
"LOWSPEED=1",
62+
"BOARD_HAS_VIDEO=0"
63+
],
64+
"target.components_remove" : [
65+
"WHD",
66+
"4343W_FS",
67+
"CYW43XXX"
68+
],
69+
"platform.minimal-printf-enable-floating-point": false,
70+
"platform.minimal-printf-enable-64-bit": false,
71+
"platform.stdio-flush-at-exit": false,
72+
"platform.stdio-baud-rate": 115200,
73+
"fat_chan.ff_use_mkfs": 0,
74+
"fat_chan.ff_use_lfn": 0,
75+
"fat_chan.ff_fs_rpath": 0,
76+
"mcuboot.log-level": "MCUBOOT_LOG_LEVEL_INFO",
77+
"mcuboot.primary-slot-address": "0x8020000",
78+
"mcuboot.slot-size": "0x1E0000",
79+
"mcuboot.scratch-address": "0x9000000",
80+
"mcuboot.scratch-size": "0x20000",
81+
"mcuboot.max-img-sectors": "0x3C0",
82+
"mcuboot.max-align": 32,
83+
"mcuboot.bootstrap": true,
84+
"mcuboot.application-hooks": true,
85+
"mcuboot.application-littlefs": true,
86+
"mcuboot.application-dfu": true,
87+
"mcuboot.application-sdcard": true,
88+
"mcuboot.signature-algorithm": "SIGNATURE_TYPE_EC256",
89+
"mcuboot.encrypt-ec256": true,
90+
"mcuboot.include-keys": null,
91+
"mcuboot.bootloader-build": false,
92+
"mcuboot.encrypt-scratch": true,
93+
"mcuboot.swap-buf-size": 131072,
94+
"mbed-trace.enable": false,
95+
"mbed-trace.fea-ipv6": false
96+
}
97+
}
98+
}

0 commit comments

Comments
 (0)
Please sign in to comment.