Commit 4865e49
committed
stm32/boards/OPENMV_N6: Enable SWD debug in mboot.
Enable SWD debug port access when booting from FLASH by configuring BSEC
registers in mboot early init:
- Write 0xB4 to BSEC_AP_UNLOCK via HAL_BSEC_UnlockDebug()
- Write 0xB451B400 to BSEC_DBGCR for non-secure and secure debug
This allows debugger attachment in FLASH Boot mode, not just DEV Boot mode.
Signed-off-by: Andrew Leech <[email protected]>1 parent 1ea807a commit 4865e49
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
48 | 57 | | |
49 | 58 | | |
50 | 59 | | |
| |||
0 commit comments