Commit d1d26b6
committed
feat(wb0): add new STM32CubeProgrammer options
STM32WB0x series have a flash base address of 0x10040000,
while other series have 0x8000000.
This means that the STM32CubeProgrammer requires
a different set of options to flash the board.
Moreover, by default the start address is 0x10040000,
which makes it begin execution directly in user flash.
This skips the bootloader code which performs some
bookkeeping (notably, updating RAM_VR.ResetReason).
As a result, RAM_VR.ResetReason and RCC->CSR will
hold invalid values until PORRESET, or two regular
RESET cycles occur (only 1 for RCC->CSR).
So, force board to begin execution in bootloader
(0x10000000) after flashing via STM32CubeProgrammer
to ensure proper system behavior at all times.
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>1 parent 7616546 commit d1d26b6
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
923 | 926 | | |
924 | 927 | | |
925 | 928 | | |
| |||
1002 | 1005 | | |
1003 | 1006 | | |
1004 | 1007 | | |
1005 | | - | |
| 1008 | + | |
1006 | 1009 | | |
1007 | 1010 | | |
1008 | 1011 | | |
| |||
13124 | 13127 | | |
13125 | 13128 | | |
13126 | 13129 | | |
| 13130 | + | |
| 13131 | + | |
| 13132 | + | |
13127 | 13133 | | |
13128 | 13134 | | |
13129 | 13135 | | |
| |||
13164 | 13170 | | |
13165 | 13171 | | |
13166 | 13172 | | |
13167 | | - | |
| 13173 | + | |
13168 | 13174 | | |
13169 | 13175 | | |
13170 | 13176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
| |||
0 commit comments