cancel
Showing results for 
Search instead for 
Did you mean: 

How to program STM32WB09KE in boot mode?

MQi.1
Senior II

On page 39 of UM3345 (User manual - STM32WB09 Nucleo-64 board (MB1801 and MB2032)):

Note: With the BLE_p2pserver demo programmed in the NUCLEO-WB09KE, the low‑power mode is enabled to
offer the best low‑power performances. Therefore, on STM32WB09KE, the SWD lines are OFF and the tool
cannot connect with the device anymore.
To reconnect or reprogram the Nucleo board, it is necessary to enter the Bootloader mode. To do this, the JP1
jumper on the MB2032 MCU RF board must connect 2 and 1

That is, after programming example code "p2pServer" into WB09KE, SWD interface couldn't be used, programming could only in boot mode through UART.

When I connect CN3 on ST-Link V3SET to [CN3-35] and [CN3-37] on MB1801D, it was prompted in Prog:

13:40:46 : UR connection mode is defined with the HWrst reset mode
13:40:46 : RTS low
13:40:46 : DTR low
13:40:46 : Serial Port COM6 is successfully opened.
13:40:46 : Port configuration: parity = none, baudrate = 9600, data-bit = 8, stop-bit = 1.0, flow-control = off
13:40:50 : Timeout error occured while waiting for acknowledgement.
13:40:50 : Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again...

 

What's the correct "the boot mode configuration and check the serial port configuration" ?

3 REPLIES 3
TDK
Guru

> SWD interface couldn't be used

Why not? What happens when you try? Did you connect JP1 to enter bootloader mode?

 

If your chip uses low-power mode, SWD will be difficult to connect to while the chip is running. Particular, if you chip goes into a low-power mode within about 0.5 s or less of starting, then the usual SWD debugging won't work. Serial won't work either, as the chip is not in the bootloader.

 

If you are in the bootloader, both serial and SWD will work.

If you feel a post has answered your question, please click "Accept as Solution".

JP1 on MB2032: 1-2 - Bootloader

JP1 on MB1801D:5-6 - 5V_INT

How about 5v, Vin or 5V_INT?

IMG_20241223_181823.jpg

How about 5v, Vin or 5V_INT?