2024-09-14 03:10 AM - edited 2024-09-17 07:25 PM
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!
Solved! Go to Solution.
2024-09-21 11:54 PM
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!
2024-09-14 04:10 AM
@hshi wrote:my stm32f407 board
What board, exactly, is that?
If it's not an ST board, are you sure it's a genuine STM32 ?
2024-09-17 07:09 PM - edited 2024-09-17 07:22 PM
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!
2024-09-19 05:29 AM
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.
2024-09-21 11:54 PM
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!