Skip to main content
Associate
June 7, 2024
Question

Unable to program STM32WB5MMG on custom board

  • June 7, 2024
  • 2 replies
  • 1558 views

I have recently taken delviery of a custom board carring the SMT32WB5MMG SiP. This is the first time I have used this specific part in a custom design, but previously have been working with a SMT32WB55 development kit without any issues.

In my design I have followed the guidelines in the datasheet to the best of my ability, supplying power to the SiP as shown in the reference schematics provided on page 14.

I am trying to program the board via a SWD header (supplying 3V3 power to this header only), but have had difficulty connecting to the board with any combinaton of settings in STM32CubeProgrammer;

craig_orv_1-1717751081492.png

The reference doesn't explicitly show how the SWD pins should be connected, but I assume a direct connection to the SWDIO and SWCLK pins would be sufficient. Please see my schematic for the controller below;

craig_orv_0-1717751065008.png

Can someone please review my schematic and provide some advice on what might be going wrong here?

Many thanks,
Craig

 

2 replies

Lubos KOUDELKA
ST Employee
June 10, 2024

Hello Craig,
Checking your system pins assignment (power, reset, SWD) I don't see any problem which shall prevent connection to the MCU. Yes, direct connection from J2 pin header to STlink is expected
Few questions/ setting recommendation:
- what is your your BOOT0 connection? Do you leave it floating or connect to some logic level?
- what ST link do you use? Some standalone probe, or some other nucleo board with SWD interface?

- in STM32CubeProgrammer please make sure you use Mode "Under reset", Reset Mode "Hardware reset" and for test please try to decrease Frequency (can be problematic for longer wires from STlink to target)
- Can you measure your VDD level and stability and nRST shape? Instability here could cause the issue as well, but not expected.
- Do you observe issue with multiple custom boards with module, or just one? In case you have issue only with some samples, soldering verification could help as well.

Best regards,
Lubos

MCarl.7
Associate II
August 13, 2024

What about SWO which is PB3 according to some other schematics . Shouldn't it be connected to ST Link as well?

A.D.
Associate III
August 14, 2024

SWO is only for trace output during debugging and not necessary for programming.

Associate II
August 18, 2025

Hello Craig,

By any chance, have you solved this issue?

I've encountered this issue as well with my custom breakout board for STM32WB5MMG.

I'm using stlink-v3 MINIE to try and communicate with the module via SWD but unfortunately i encounter the same issue as yours. 

Jopail12_0-1755519795445.png

Hope to hear back from you. 

Thanks!