You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#define WOLFBOOT_PARTITION_SWAP_ADDRESS 0x0 /* Unused, swap is hw-assisted */
202
+
```
203
+
204
+
### Build Options
205
+
206
+
To activate the dual-bank hardware-assisted swap feature on STM32F76x/77x, use the
207
+
`DUALBANK_SWAP=1` compile time option. Some code requires to run in RAM during the swapping
208
+
of the images, so the compile-time option `RAMCODE=1` is also required in this case.
209
+
210
+
Dual-bank STM32F7 build can be built using:
211
+
212
+
```
213
+
make TARGET=stm32f7 DUALBANK_SWAP=1 RAM_CODE=1
214
+
```
215
+
216
+
217
+
### Loading the firmware
218
+
219
+
To switch between single-bank (1x2MB) and dual-bank (2 x 1MB) mode mapping, this [stm32f7-dualbank-tool](https://github.com/danielinux/stm32f7-dualbank-tool)
220
+
can be used.
221
+
Before starting openocd, switch the flash mode to dualbank (e.g. via `make dualbank` using the dualbank tool).
222
+
223
+
OpenOCD configuration for flashing/debugging, can be copied into `openocd.cfg` in your working directory:
224
+
225
+
```
226
+
source [find interface/stlink.cfg]
227
+
source [find board/stm32f7discovery.cfg]
228
+
$_TARGETNAME configure -event reset-init {
229
+
mmw 0xe0042004 0x7 0x0
230
+
}
231
+
init
232
+
reset
233
+
halt
234
+
```
235
+
236
+
OpenOCD can be either run in background (to allow remote GDB and monitor terminal connections), or
237
+
directly from command line, to execute terminal scripts.
238
+
239
+
If OpenOCD is running, local TCP port 4444 can be used to access an interactive terminal prompt.
240
+
241
+
Using the following openocd commands, the initial images for wolfBoot and the test application
0 commit comments