File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments