cancel
Showing results for 
Search instead for 
Did you mean: 

Error during flashing in STM32WB55RG

mmed
Associate III

Hi,

I tried to flash to the STM32WB55RG .. I am using a USB type microB connector for the flashing connected to Connector 15 (CN15) of the nucleo card (the jumper JP1 is connected to pin [7-8] and the two leds LED6 and LED5 are red) and I am using IAR .. I downloaded the STM32Cube_FW_WB_V1.9.0 from ST site and tried to flash a project among the examples already developed and proposed. But, I always had the following error:

(ST-Link, no MCU device found)

Note that the debuger in IAR is well configured in ST-Link .. Following my research, I found that 'there are solutions which suggest doing the Reset just before flashing, but it didn't work .. I downloaded ST-Link utility from the ST site .. and I tried to connect to the card to this software, but still unsuccessful .. Here is the error message from ST utility:

(19:54:24: Can not connect to target!

         If you're trying to connect to an STM32W1xx device, please select Normal or HotPlug mode from Target-> Settings menu.

         If you're trying to connect to a low frequency application, please select a lower SWD Frequency mode from Target-> Settings menu.)

Note that in the settings of ST-Lin utility, it has successfully retrieved the SN of the USB type connector microB connector of ST-LINK / V2-1 and that the mode is "Connects under reset" .. solutions on the net propose to make a "full chip erase" just after a reset but always the error message is displayed. .. I also downloaded a project from STM32Cubemx with no special configuration and tried to flash it with IAR and also with Keil .. but still the error (ST-Link, no MCU device found) .. during all the tests, I tried with two different type microB connector of ST-LINK / V2-1 cables .. I am looking for a solution for that .. thank you for helping ..

18 REPLIES 18
mmed
Associate III

Hi @Community member​ , any help please and thanks in advance

Sorry, don't have any STM32WB boards or chips. SWD/JTAG failure typically occurs when the pins are reconfigured, disabled or powered down. Pulling BOOT0 High may get you to safe harbour if user code is responsible for issue. Check ​also security / protection options, and if these have caused permanent lock out.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Hi,

thanks for your response.

In fact, I did everything, i did what you just said.

In the datasheet of P-NUCLEO-WB55, there is an information about Solder Bridge. Please see the attached pictures for more information. Do you think that's the solution? to make change on the Hardware and make SB26 ON?

Thanks again.

 
mmed
Associate III

Hi @Remi QUINTIN,

Any idea please?.

Thanks in advance

Remi QUINTIN
ST Employee

I think you are missing a jumper in between pin 5 and 7 on CN7. This is mandatory to set BOOT0 to 1 in order to be able to program the device via the USB port in DFU mode. in that case you need also to set the nSWBoot0 option byte to 1.

Else when using the STLINK (SWD port via the USB port CN15), you have to set nSWboot0=0 nboot1=1 nboot0=1 o be able to connect to the device.

I recommend you use the CubeProgrammer tool (available on the ST web site)to program the chip, either in GUI mode or in CLI mode. It is up to you.

mmed
Associate III

Hi @Remi QUINTIN​ ,

Thanks for your answer. Even with jupmer between oin 5 and 7 on CN7, it doesnt work. I try to use also CubeProgrammer, it cannot connect to the board. Please see the attached picture.

Please how can i; set nSWboot0=0 nboot1=1 nboot0=1 o be able to connect to the device?? Thanks for helping.

mmed
Associate III
 
mmed
Associate III