cancel
Showing results for 
Search instead for 
Did you mean: 

Can't download to STM32F407 or connect with Cube Programmer

hshi
Associate II

When connecting my custom STM32F407IGTb board (which I used to drive a motor) with Cube Programmer v2.17.0, the following error pops up: 

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

and 

"Error: Data read failed", 

here is the log I get:

"""

17:59:57 : UR connection mode is defined with the HWrst reset mode
17:59:57 : ST-LINK SN : 50FF6F067085495116462587
17:59:57 : ST-LINK FW : V2J43S7
17:59:57 : Board : --
17:59:57 : Voltage : 3.30V
17:59:57 : SWD freq : 4000 KHz
17:59:57 : Connect mode: Normal
17:59:57 : Reset mode : Software reset
17:59:57 : Device ID : 0x413
17:59:57 : Revision ID : --
17:59:57 : Error: Database: There's no active configuration for this device. All the 2 configurations are disabled!
17:59:57 : Debug in Low Power mode is not supported for this device.
17:59:57 : UPLOADING OPTION BYTES DATA ...
17:59:57 : Bank : 0x00
17:59:57 : Address : 0x40023c14
17:59:57 : Size : 4 Bytes
17:59:57 : UPLOADING ...
17:59:57 : Size : 1024 Bytes
17:59:57 : Address : 0x8000000
17:59:57 : Read progress:
17:59:57 : Error: Data read failed

"""

I can't download my code into the board with uvision, the error message 

"""

Flash Timeout. Reset the Target and try it again. 

"""

will pop up. 

Can anyone help me with this?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

Hi Maryem, 

I replaced the broken mcu with a brand new one so I can't reproduce the issue either right now.. If this happens again (which I centainly hope not), I surely will contact you again and send you the configuration, much thanks!

View solution in original post

4 REPLIES 4

@hshi wrote:

 my stm32f407 board


What board, exactly, is that?

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

If it's not an ST board, are you sure it's a genuine STM32 ?

Hi Andrew, 

Sorry for the confusion, it's not a ST board, it's a custom board that I used to drive a motor, its MCU is STM32F407IGTb. 

I have been using this board casually for the last past few weeks, edit code in Uvision, then download through ST-Link. But one day the download failed with the pop up message "Flash Timeout. Reset the Target and try it again". I tried reseting, but it didn't work; I tried starting the MCU with BOOT0 high, BOOT1 low, but this didn't work either; so I googled, and tried erasing the whole flash with CubeProgrammer, but this also failed with the above error messaged I pasted above. 

Thank you for the reply! 

Maryem
ST Employee

Hello @hshi ,

 

I apologize for the delayed response. I was unable to reproduce the issue on my end. Could you please share the current configuration of your option bytes ?

Thank you in advance !

 

Maryem.


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi Maryem, 

I replaced the broken mcu with a brand new one so I can't reproduce the issue either right now.. If this happens again (which I centainly hope not), I surely will contact you again and send you the configuration, much thanks!