Skip to main content
mmed
Associate III
November 3, 2020
Question

Error during flashing in STM32WB55RG

  • November 3, 2020
  • 18 replies
  • 5616 views

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 ..

This topic has been closed for replies.

18 replies

mmed
mmedAuthor
Associate III
November 3, 2020

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

Tesla DeLorean
Guru
November 3, 2020

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
mmed
mmedAuthor
Associate III
November 4, 2020

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
mmedAuthor
Associate III
November 4, 2020

Hi @Remi QUINTIN,

Any idea please?.

Thanks in advance

Remi QUINTIN
ST Technical Moderator
November 5, 2020

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
mmedAuthor
Associate III
November 5, 2020

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
mmedAuthor
Associate III
November 5, 2020

..

mmed
mmedAuthor
Associate III
November 5, 2020

..

mmed
mmedAuthor
Associate III
November 5, 2020

Note that i'm using SB type microB connector (ST-Link)

Remi QUINTIN
ST Technical Moderator
November 6, 2020

​Looking more carefully at the picture of your Nucleo board, I can see that all jumpers from JP5 are removed while there are all set on my nucleo bioard except the last one GND.

So you have the exact opposite configuration on JP5 vs mine. Check this point.

mmed
mmedAuthor
Associate III
November 12, 2020

Hi @Remi QUINTIN​ ,

In fact, all jumpers of JP5 are connected! If you loook carefully, they are dark blue

Scott Löhr
Senior III
November 12, 2020

Out of the box, everything works. So if I were you, @mmed​ , I would get a new, un-opened, STM32WB Nucleo dev kit, open it and handle it carefully so as not to zap it with static, and connect it with a new USB cable in order to get to a sane point of something working.

Remi QUINTIN
ST Technical Moderator
November 12, 2020

​Moreover, the shield over the WB chip seems to be a very old version.  There should be some information printed on it.

Where did you get this board? I would recommend also to try with another newer board.