Skip to content

Commit abcebdd

Browse files
NUCLEO_H743ZI2 support
1 parent 8685bf8 commit abcebdd

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.github/workflows/compile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
# Change the below to match the target(s) you want to compile the project for.
1616
- K64F
1717
- MIMXRT1060_EVK
18+
- NUCLEO_H743ZI2
1819

1920
steps:
2021
- name: Checkout

SimpleApp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ int main()
6363
if (ret == 0)
6464
{
6565
tr_info("Current firmware set as confirmed");
66-
return 0;
6766
}
6867
else
6968
{

mbed_app.json5

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,31 @@
115115
"mcuboot.flash-block-size": 256,
116116

117117
"demo-button-active-low": true
118+
},
119+
120+
"MCU_STM32H743xI": {
121+
"target.memory_bank_config": {
122+
"IROM1": {
123+
"start": 0x08021000, // mcuboot.primary-slot-address + mcuboot.header-size
124+
"size": 0xDF000 // mcuboot.slot-size - mcuboot.header-size
125+
}
126+
},
127+
128+
// Since STM32H743 boards have no external block device, keep everything in the MCU flash.
129+
"app.secondary-slot-in-flash": true,
130+
"app.secondary-slot-flash-start-addr": "0x08100000",
131+
132+
// Slot size can be as big as 896k, since we need to reserve the first flash sector for the bootloader
133+
// and the last flash sector for scratch space
134+
"mcuboot.primary-slot-address": "0x08020000",
135+
"mcuboot.max-img-sectors": "7", // 7 flash sectors per slot
136+
"mcuboot.slot-size": "0xE0000",
137+
"mcuboot.flash-block-size": 32, // Flash program size is 32
138+
139+
// STM32H7 flash sector size is 128k, so we need to make the scratch region at least that big
140+
"mcuboot.scratch-address": "0x081E0000",
141+
"mcuboot.scratch-size": "0x20000"
142+
118143
}
119144
},
120145
}

0 commit comments

Comments
 (0)