Skip to main content
Associate
Oct 14, 2026 1:50 PM UTC
Question

Unable to flash STM32C011F4U6TR Database: There's no active configuration for this device

Hi everyone,

I'm using a custom board with minimal circuitry; currently, only an STM IC with a reset circuit is installed. The SWD analysis using a data logger shows that the chip is responding and the electrical connections are fine.

I’m using the Nucleo-F401RE as a programmer; programming the onboard chip works without errors, but not when communicating with the target controller via the SWD interface.

I get the following message:

Error: Database: There's no active configuration for this device. All 2 configurations are disabled!

I have selected the “Hardware reset” and “Under reset” settings.

Here is the report

15:42:31 : STM32CubeProgrammer API v2.23.0 | Windows-64Bits 
15:44:00 : UR connection mode is defined with the HWrst reset mode
15:44:00 : ST-LINK SN  : 0672FF495250836767022309
15:44:00 : ST-LINK FW  : V2J48M35
15:44:00 : Board       : NUCLEO-F401RE
15:44:00 : Voltage     : 3.26V
15:44:00 : SWD freq    : 4000 KHz
15:44:00 : Connect mode: Under Reset
15:44:00 : Reset mode  : Hardware reset
15:44:00 : Device ID   : 0x443
15:44:00 : Revision ID : Rev Z
15:44:00 : Error: Database: There's no active configuration for this device. All the 2 configurations are disabled!
15:44:00 : Debug in Low Power mode is not supported for this device.
15:44:01 : UPLOADING OPTION BYTES DATA ...
15:44:01 :   Bank          : 0x00
15:44:01 :   Address       : 0x40022020 
15:44:01 :   Size          : 100 Bytes
15:44:01 : UPLOADING ...
15:44:01 :   Size          : 1024 Bytes
15:44:01 :   Address       : 0x8000000
15:44:01 : Read progress:
15:44:01 : Error: Data read failed

8 replies

Andrew Neil
Super User
Oct 14, 2026 2:10 PM UTC

Welcome to the forum.

As it’s a custom board, you need to share the schematic:

 

Is it a new design, or has it worked before?

 

I’m using the Nucleo-F401RE as a programmer; programming the onboard chip works without errors, but not when communicating with the target controller via the SWD interface.

Have you correctly configured the Nucleo mode for this ?

Have you disconnected NRST from the Nucleo’s on-board target?

 

Can you program your custom board using a standalone ST-Link?

 

For serious work, I would strongly suggest getting a standalone ST-Link - see:

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
SE_MarcoAuthor
Associate
Oct 19, 2026 5:31 AM UTC

Thank you very much for your reply,

This is a new design; I’ve done quite a bit with Atmel chips before, but now I’d like to implement the whole thing using STM.

This is my first attempt at developing my own design. That’s why I’m not sure if I’ve configured the Nucleo mode correctly.

The two ST-Link jumpers are open;
I’ve connected the V++ reference, SWCLK, GND, SWDIO, and nsRST.

The STM32C011F4U6TR has its own power supply, which runs smoothly at 3.3V. 


Here is the schematic. 

Thanks for the tip about the ST Link; I'll go get one.

SE_MarcoAuthor
Associate
Oct 19, 2026 10:58 AM UTC

…… I implemented the same setup on a second board with an STM32C031G6U6; can this be programmed without any problems from within CubeIDE using the Nucleo programmer? Is the STM32C011F4U6TR possibly not supported, or is it not correctly configured in the STM library with regard to memory regions?

Andrew Neil
Super User
Oct 19, 2026 11:10 AM UTC

with an STM32C031G6U6; can this be programmed without any problems from within CubeIDE 

So was the first board also being programmed within CubeIDE, or from CubeProgrammer?

And which versions ?

 

The error message you posted:

Database: There's no active configuration for this device. All the 2 configurations are disabled!

does sound like a host-side problem rather than anything to do with comms with the device ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
SE_MarcoAuthor
Associate
Oct 19, 2026 11:16 AM UTC

I tried both
CubeIDE 2.2.0 
Cube Programmer v2.23.0

Andrew Neil
Super User
Oct 19, 2026 11:27 AM UTC

And the 1st board (STM32C011F4U6TR) gave you the exact same error message with both tools, but the 2nd board (STM32C031G6U6) works with no error with both tools ?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
SE_MarcoAuthor
Associate
Oct 19, 2026 11:34 AM UTC

Error Cube IDE:

 

ST-LINK SN : 0672FF495250836767022309

ST-LINK FW : V2J48M35

Board : NUCLEO-F401RE

Voltage : 3.26V

SWD freq : 4000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID : 0x443

Revision ID : Rev Z

Error: Database: There's no active configuration for this device. All the 2 configurations are disabled!

Error: Database: There's no active configuration for this device. All the 2 configurations are disabled!

Device name : STM32C01x

NVM size : 63 KBytes (default)

Device type : MCU

Device CPU : Cortex-M0+

BL Version : --

 

Opening and parsing file: ST-LINK_GDB_server_a23888.srec

 

Memory Programming ...

File : ST-LINK_GDB_server_a23888.srec

Size : 5.60 KB

Address : 0x08000000

 

File segment @0x08000000 is not 255-bytes aligned. It will be aligned to @0x07FFFFF8

Erasing memory corresponding to segment 0:

Download in Progress:

 

Error: failed to download Sector[0]

Error: failed to download the File

Encountered Error when opening C:\ST\STM32CubeIDE_2.2.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.500.202603051304\tools\bin\STM32_Programmer_CLI.exe

Error in STM32CubeProgrammer

Shutting down...

Exit.

 

and the report from my first message was from the programmer.

 

“C:\ST\STM32CubeIDE_2.2.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.500.202603051304\tools\bin\STM32_Programmer_CLI.exe”

 

This message leads me to believe that the correct memory library for this chip doesn't exist?

TDK
Oct 19, 2026 12:59 PM UTC

File segment @0x08000000 is not 255-bytes aligned. It will be aligned to @0x07FFFFF8

You obviously cannot write to 0x07FFFFF8. Not sure what is happening there.

 

Try programming the chip using the HEX or ELF file using the standalone STM32CubeProgrammer. If it doesn’t work, seems like a bug.

"If you feel a post has answered your question, please click ""Accept as Solution""."