Skip to content

Commit 3297bae

Browse files
author
Jamie Smith
authored
Fix STM32H7 dual core inheritance again (#366)
1 parent 3b7ac99 commit 3297bae

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

targets/targets.json5

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3421,10 +3421,10 @@
34213421
],
34223422
"device_name": "STM32H745ZITx"
34233423
},
3424+
3425+
// These targets contain the extra bits to add to the MCU_STM32H745xI target to set it for the
3426+
// CM4 or CM7 core.
34243427
"MCU_STM32H745xI_CM4": {
3425-
"inherits": [
3426-
"MCU_STM32H745xI"
3427-
],
34283428
"public": false,
34293429
"extra_labels_add": [
34303430
"STM32H745xI_CM4"
@@ -3442,9 +3442,6 @@
34423442
]
34433443
},
34443444
"MCU_STM32H745xI_CM7": {
3445-
"inherits": [
3446-
"MCU_STM32H745xI"
3447-
],
34483445
"public": false,
34493446
"extra_labels_add": [
34503447
"STM32H745xI_CM7"
@@ -3463,6 +3460,7 @@
34633460
]
34643461
},
34653462
"NUCLEO_H745ZI_Q": {
3463+
"inherits": ["MCU_STM32H745xI"],
34663464
"supported_form_factors": [
34673465
"ARDUINO_UNO"
34683466
],
@@ -3508,10 +3506,9 @@
35083506
"STM32H747xx"
35093507
]
35103508
},
3509+
// These targets contain the extra bits to add to the MCU_STM32H747xI target to set it for the
3510+
// CM4 or CM7 core.
35113511
"MCU_STM32H747xI_CM7": {
3512-
"inherits": [
3513-
"MCU_STM32H747xI"
3514-
],
35153512
"public": false,
35163513
"extra_labels_add": [
35173514
"STM32H747xI_CM7"
@@ -3530,9 +3527,6 @@
35303527
]
35313528
},
35323529
"MCU_STM32H747xI_CM4": {
3533-
"inherits": [
3534-
"MCU_STM32H747xI"
3535-
],
35363530
"public": false,
35373531
"extra_labels_add": [
35383532
"STM32H747xI_CM4"
@@ -3557,16 +3551,19 @@
35573551
"DISCO_H747I": {
35583552
"image_url": "https://mm.digikey.com/Volume0/opasdata/d220001/medias/images/310/MFG_STM32H747I-DISCO.jpg",
35593553
"public": false,
3554+
"inherits": ["MCU_STM32H747xI"],
35603555
"overrides": {
35613556
"system_power_supply": "PWR_DIRECT_SMPS_SUPPLY",
35623557
// Cannot enable overdrive mode because the default power supply is SMPS
35633558
"enable-overdrive-mode": 0
35643559
}
35653560
},
35663561
"DISCO_H747I_CM7": {
3562+
// NOTE: inherit from MCU_STM32H747xI_CM7 first so that target's attributes get priority over
3563+
// DISCO_H747I's attributes.
35673564
"inherits": [
3568-
"MCU_STM32H747xI_CM7",
3569-
"DISCO_H747"
3565+
"MCU_STM32H747xI_CM7",
3566+
"DISCO_H747I"
35703567
],
35713568
"supported_form_factors": [
35723569
"ARDUINO_UNO",
@@ -3590,8 +3587,8 @@
35903587
},
35913588
"DISCO_H747I_CM4": {
35923589
"inherits": [
3593-
"MCU_STM32H747xI_CM4",
3594-
"DISCO_H747"
3590+
"MCU_STM32H747xI_CM4",
3591+
"DISCO_H747I"
35953592
],
35963593
"extra_labels_add": [
35973594
"DISCO_H747I",
@@ -3669,10 +3666,10 @@
36693666
"image_url": "https://store.arduino.cc/cdn/shop/products/ABX00042_00.iso_1200x900.jpg?v=1675840144"
36703667
},
36713668
"ARDUINO_PORTENTA_H7_M7": {
3672-
"inherits": ["ARDUINO_PORTENTA_H7", "MCU_STM32H747xI_CM7"],
3669+
"inherits": ["MCU_STM32H747xI_CM7", "ARDUINO_PORTENTA_H7"]
36733670
},
36743671
"ARDUINO_PORTENTA_H7_M4": {
3675-
"inherits": ["ARDUINO_PORTENTA_H7", "MCU_STM32H747xI_CM4"],
3672+
"inherits": ["MCU_STM32H747xI_CM4", "ARDUINO_PORTENTA_H7"]
36763673
},
36773674
"MCU_STM32H750xB": {
36783675
"inherits": [

0 commit comments

Comments
 (0)