Skip to main content
RAshworth
Associate II
Dec 3, 2018 10:33 AM UTC
Question

STM32 Cube Programmer reports Corrupted Database

I have just installed the STM32 Cube Programmer on a new machine (MAC osx), and it doesn't seem to like it at all. It appears to be installed ok, and connects to the st-link V2, but when I then try to connect to the ARM chip STM32F429, it complains about a corrupted database.

I have deleted the app and started again, and also re-downloaded it, but no joy.

This topic has been closed for replies.

8 replies

RAshworth
RAshworthAuthor
Associate II
Dec 3, 2018 10:47 AM UTC

I have also upgraded the firmware

Markus Rudolf
Associate III
Jan 12, 2019 1:47 PM UTC

Same here with an STM32F413RGT6

RAshworth
RAshworthAuthor
Associate II
Jan 14, 2019 9:00 AM UTC

I found it was down to one of the SWDIO wires not being connected properly. Annoying that it reports this as a fault, when it is nothing to do with it!

Markus Rudolf
Associate III
Jan 14, 2019 12:19 PM UTC

I can rule that out as Debugging via SWDIO works fine.

RAshworth
RAshworthAuthor
Associate II
Jan 14, 2019 3:18 PM UTC

I have also had issues when the SWDIO pins are shared with other peripherals. Can you share your schematic, or let me know which pins you are connected to. There is a flag to turn off the SWDIO on/off.

Markus Rudolf
Associate III
Jan 14, 2019 4:40 PM UTC

With the newer Cube Programmer I get unknown ID, not the Database Corrupt message anymore. DFU Bootloader detected is 0x011A. In general USB seems to work.

RAshworth
RAshworthAuthor
Associate II
Jan 15, 2019 2:30 PM UTC

Ensure this line of code doesn't exist otherwise the SW will be disabled once the code is running! I had to physically remove my STM32 device and replace with another to get around this which is set by default. Go to the Pinout -> Peripherals -> SYS -> Debug, and make sure Serial wire is turned on.

 //__HAL_AFIO_REMAP_SWJ_DISABLE();//if you use this line the device will turn into a vegetable!
 __HAL_AFIO_REMAP_SWJ_ENABLE();//Ensure Enabled

If it has been generated automatically via the CUBMx thingy, it will be in "stm32f1xx_hal_msp.c"

csard
Associate
Feb 26, 2019 2:00 PM UTC

I report the same problem the board B-l072z-lrwan1 can't program ,