How to erase chip in STM32CubeIDE?
To erase the flash of an STM32 “chip” from STM32CubeIDE , you basically use the built-in STM32CubeProgrammer backend. Here’s the standard way, step by step. 1. Full-chip erase from STM32CubeIDE A) Using the Run/Debug configuration (most common) Connect your board Plug in your STM32 board via ST-LINK (or built-in debugger on Nucleo / Discovery ). Make sure drivers are installed and the board shows up in CubeIDE. Open Run/Debug configurations In the menu: Run → Run Configurations… or Run → Debug Configurations… (both dialogs are similar). Select your project/MCU config In the left tree, under STM32 Cortex-M C/C++ Application , click your project’s configuration. Go to the “Startup” or “Debugger” tab (name slightly varies by version) Look for a section like “Initialization” or “Load/Erase” . Enable Flash erase You will see options such as: “Reset behaviour” (Connect under reset, etc.) “Erase Flash” or “Flash Download” option...