Skip to main content
Visitor II
March 27, 2014
Question

st8 Discovery gdi-error [40201]: can't access configuration database

  • March 27, 2014
  • 30 replies
  • 15185 views
Posted on March 27, 2014 at 20:09

Hi,

I'm trying to use the ST Visual Develop with the Cosmic st8 32k compiler.  I install everything and build the project.  That all works fine.  When I try to connect to the Discovery board with the debugger using Swim ST-link, I receive the following error:

Starting debug session...

 

 -> Emulator reset (usb://usb)...

 

  ** Connection error (usb://usb): gdi-error [40201]: can't access configuration database

 

 

 

 -> Failed to connect target.

I have tried uninstalling and re-installing everything including the drivers.  I've tried other target settings.  The only one that works is the simulator.

When I connect the Discovery board, my computer sees it as an external HD.  I get the pop-up window and can look at the links stored on the board.  I'm using Windows 7 64bit.

I should also add that after the above error message a windows 7 pop-up appears saying that gdb7 has stopped working and a red LED glows on the board.

Any help would be appreciated.

Regards,

Marc

#stm8-discovery #i-also-get-same-error-so-please
    This topic has been closed for replies.

    30 replies

    Visitor II
    July 9, 2019

    Running ST Toolset Repair mode didn't work for me in Windows 10. But this works :

    You will need to open a command prompt in Administrator mode. For those that don't know you will find it at Windows/Start button->All Programs->Accessories->

    Right click on 'Command prompt' and select 'run as administrator'.

    1st type this:

    Regsvr32 /u 'C:\Program Files (x86)\Common Files\Microsoft Shared\DAO\DAO350.DLL'

    2nd type this:

    Regsvr32 'C:\Program Files (x86)\Common Files\Microsoft Shared\DAO\DAO350.DLL'

    This unloads and then reloads the DAO DLL which fixes the problem nicely. It also assumes you have a standard install of Windows so if you put DAO350.DLL somewhere else then you will have to change the paths.

    Thanks to :http://mieurekas.blogspot.com/2017/04/stvd-connection-error-usbusb-gdi-error.html and David Instone :https://community.st.com/s/question/0D50X00009XkXhpSAF/stlink-v2-configuration-database?t=1562651258301

    Visitor II
    August 15, 2019

    Hey

    Had same error ''40201''

    Running ST Toolset.msi fixed this problem on my 64-bit windows 7 machine .

    On my 64-bit machine running windows 10 I had to first uninstall the  ST Toolset.msi and then do new install .

    What was strange is they both stopped working on the same day .

    Thank for all other info in this Thread help me solve this one!

    Visitor II
    December 4, 2019

    Running 'ST Toolset.msi' did not work for me (both as normal user and admin) but I found my solution here:

    https://community.st.com/s/question/0D50X00009XkXhpSAF/stlink-v2-configuration-database

    It says:

    You will need to open a command prompt in administrator mode. For those that don't know you will find it at

    Windows/Start button->All Programs->Accessories->

    Right click on 'Command prompt' and select 'run as administrator'

    First type this one

    Regsvr32 /u "C:\Program Files (x86)\Common Files\Microsoft Shared\DAO\DAO350.DLL"

    And then this one

     

    Regsvr32 "C:\Program Files (x86)\Common Files\Microsoft Shared\DAO\DAO350.DLL"

    This unloads and then reloads the DAO DLL which fixes the problem nicely. It also assumes you have a standard install of Windows so if you put DAO350.DLL somewhere else then you will have to change the paths.

    You might also have to cd \windows\system32 before anything to use regsvr32 but mine defaults to there

    @jwilson​ @MRaja.1710​  @Ilia Baranov​ 

    Visitor II
    December 20, 2019

    Hello

    I'm facing too. Could you let me know the method if you fixed ?

    Visitor II
    December 24, 2019

    The above answer from Mworl.1974 (Community Member) solved my issue.

    Visitor II
    December 20, 2019

    Did you find the solution ?

    Visitor II
    December 24, 2019

    Thanks, the issue was fixed.

    Explorer
    January 2, 2020

    I tryed everything above and the same error appear and appear and not resolve, i don´t know more, i am thinking that ST have a big problem with this and everyone have the same situation and not resolved, what can i do to resolve?????????

    Visitor II
    June 13, 2020

    hi every one ,,

    if you don't get solution for the same

    for windows 10 press windwos+x and select admin power sell

    and type this two command

    1.  Regsvr32 /u "C:\Program Files (x86)\Common Files\Microsoft Shared\DAO\DAO350.DLL"
    2.  Regsvr32 "C:\Program Files (x86)\Common Files\Microsoft Shared\DAO\DAO350.DLL"

    best regard,

    sachin patel

    Visitor II
    January 26, 2023

    Unfortunately, nothing I could read so far was able to solve mi problem. I tried all things described in this topic as well as severals others attempts by myself.

    In fact, the issue seams related to the install pack newers.

    What I did? Well, I remember that the old versions have been work issueless by the years.

    Before everything, I unistalled the issue last version ST Toolset.

    I got a 2010 ST Toolset installer, then I installed this one and all worked.

    After that, I up to date the old instalation with STToolset newer version.

    And so, got mi happy ending.

    Explorer
    August 16, 2023

    i downloaded the licence file it was originally with extension .lic

    but the problem is when i tried to copy  it into my PC it will automatically gets converted into txt file. whn i tried to debug it showing same error msg :   ** Connection error (usb://usb): gdi-error [40201]: can't access configuration database.

    rather i hve installed and unintalled software many times.

    no error during compile buid and rebuild steps but while clicking on debug option error occurs.

    please help to come out.

    my account is Administrator