RAK3172 (STM32WL) – ST-LINK & STM32CubeProgrammer Full Chip Erase Fails and Connection Is Unstable

Hello,

I am using a RAK3172 (STM32WL) module with ST-LINK (SWD) and STM32CubeProgrammer.

I am trying to perform a Full Chip Erase, but I keep getting:

Error: Mass erase operation failed. Please verify flash protection.

I checked and reset all Option Bytes:

  • RDP = AA
  • PCROP = 0x00
  • WRP = 0x00
  • ESE disabled

After clicking Apply, STM32CubeProgrammer sometimes freezes and must be force closed.
After restarting, the connection becomes unstable:

  • DEV_CONNECT_ERR
  • Sometimes I cannot reconnect at all
  • Even when connected, full chip erase still fails

Board is powered from ST-LINK 3.3V, NRST is connected, SWD frequency tested at lower values.

Has anyone experienced similar issues with RAK3172 / STM32WL or has recommended CubeProgrammer settings?

Thanks in advance.

Welcome to RAK forum @enes18 ,

Some ideas:

  1. Use external 3.3V supply. But still connect it to ST-Link. ST-Link will detect the VDD level.
  2. For your setup, are you using an official ST-Link? Can you share your connection?
  3. You can try different reset mode on STM32-Cube Programmer. SW, HW and Core. Since NRST is connected, then you can use HW.

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