File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ TARGET=stm32wb
2+ SIGN=ECC256
3+ HASH=SHA256
4+ WOLFBOOT_SECTOR_SIZE=0x1000
5+ WOLFBOOT_PARTITION_SIZE=0x7B800
6+ WOLFBOOT_PARTITION_BOOT_ADDRESS=0x08008000
7+ WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x08083800
8+ WOLFBOOT_PARTITION_SWAP_ADDRESS=0x080FF000
9+ NVM_FLASH_WRITEONCE=1
10+ PKA=1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11TARGET=stm32wb
22SIGN=ECC256
3- HASH? =SHA256
4- WOLFBOOT_SECTOR_SIZE?=0x20000
5- WOLFBOOT_PARTITION_SIZE?=0x60000
6- WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x20000
7- WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x00000
8- WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x60000
3+ HASH=SHA256
4+ WOLFBOOT_SECTOR_SIZE=0x1000
5+ WOLFBOOT_PARTITION_SIZE=0x20000
6+ WOLFBOOT_PARTITION_BOOT_ADDRESS=0x08008000
7+ WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x08028000
8+ WOLFBOOT_PARTITION_SWAP_ADDRESS=0x08048000
99NVM_FLASH_WRITEONCE=1
1010PKA=0
1111WOLFTPM=1
Original file line number Diff line number Diff line change 11TARGET=stm32wb
22SIGN=ECC256
3- HASH? =SHA256
4- WOLFBOOT_SECTOR_SIZE?=0x20000
5- WOLFBOOT_PARTITION_SIZE?=0x60000
6- WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x20000
7- WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x00000
8- WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x60000
3+ HASH=SHA256
4+ WOLFBOOT_SECTOR_SIZE=0x1000
5+ WOLFBOOT_PARTITION_SIZE=0x20000
6+ WOLFBOOT_PARTITION_BOOT_ADDRESS=0x08008000
7+ WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x08028000
8+ WOLFBOOT_PARTITION_SWAP_ADDRESS=0x08048000
99NVM_FLASH_WRITEONCE=1
10- PKA=1
10+ PKA=0
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ Example partitioning on Nucleo-68 board:
105105#define WOLFBOOT_PARTITION_SWAP_ADDRESS 0x48000
106106```
107107
108- ### Building
108+ ### STM32WB55 Building
109109
110110Use ` make TARGET=stm32wb ` .
111111
@@ -116,27 +116,44 @@ Compile with:
116116
117117` make TARGET=stm32wb NVM_FLASH_WRITEONCE=1 `
118118
119- ### Loading the firmware
119+ ### STM32WB55 with OpenOCD
120120
121121` openocd --file ./config/openocd/openocd_stm32wbx.cfg `
122122
123123```
124124telnet localhost 4444
125- flash write_image unlock erase wolfboot.bin 0x08000000
126- flash verify_bank 0 wolfboot.bin
127- flash write_image unlock erase test-app/image_v1_signed.bin 0x080008000
128- flash verify_bank 0 test-app/image_v1_signed.bin 0x080008000
125+ reset halt
126+ flash write_image unlock erase factory.bin 0x08000000
127+ flash verify_bank 0 factory.bin
129128reset
130129```
131130
132- ### Debugging
131+ ### STM32WB55 with ST-Link
132+
133+ ```
134+ git clone https://github.com/stlink-org/stlink.git
135+ cd stlink
136+ cmake .
137+ make
138+ sudo make install
139+ ```
140+
141+ ```
142+ st-flash write factory.bin 0x08000000
143+
144+ # Start GDB server
145+ st-util -p 3333
146+ ```
147+
148+ ### STM32WB55 Debugging
133149
134150Use ` make DEBUG=1 ` and reload firmware.
135151
152+ wolfBoot has a .gdbinit to configure
136153```
137- arm-none-eabi-gdb wolfboot.elf -ex "set remotetimeout 240" -ex "target extended-remote localhost:3333"
138- (gdb) add-symbol-file test-app/image.elf 0x8000
139- (gdb) add-symbol-file wolfboot.elf 0x0
154+ arm-none-eabi-gdb
155+ add-symbol-file test-app/image.elf 0x08008100
156+ mon reset init
140157```
141158
142159
You can’t perform that action at this time.
0 commit comments