Using ST-Link Debugger with STM32WLE5 Core Module / RAK3172 module

Hello,

I’ve recently bought a STM32WLE5 Core WizBlock Core Module. As I’m trying to avoid the Arduino Ecosystem, I’ve decided to create a low level application (using STM32CubeIDE) and followed this guide:

It looks like I succeeded and I have a .bin file ready for upload to the STM target. I open STM32CubeProgrammer, hit “Connect” and a connection to my ST-Link V2 is established. It seems like reading the memory succeeds. I select the .bin file for upload and hit “download” (which seems to be for upload - confusing …) but then an error message pops up saying:

Failed to erase memory

Not sure what I can do at this point. Are there any write protections that need to be removed previously?

The ST-Link V2 debugger is connected via:

  • GND
  • SWDIO
  • SWCLK
  • RST

to the RAK 3172 module. Do I need to connect more pins or even set pins to particular voltage levels to make it work, e.g. set the BOOT0 pin at the module?

1 Like

It looks like using another USB port fixed the problem :o
I’ve had the debugger attached to my laptop docking station. Now that it’s connected directly to one of the laptop’s USB jacks, it works fine!

(Keeping an eye on this, still!). I’m leaving this post as a possible solution to others who might have the same error message.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.