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
    August 27, 2015
    Posted on August 27, 2015 at 23:05

    Please help me.

    I'm trying to use the STM8S Discovery dev board  and I keep getting errors when I try to use the ST-Link to debug it.

    can't access configuration database.  I have no idea why? or what the config database is?  I've tried installing everything, reinstalling everything.  I've tried two different computers and 4 different boards, and two different ST-links? I'm using windows 8.  Any ideas?

    ST Employee
    August 28, 2015
    Posted on August 28, 2015 at 14:00

    Hello Stephen,

    Did you try what I explained in the previous post (26 august) ?

    The concerned database is stvd/swim/config/swim_conf.mdb. It requires the DAO-3.5 jet engine to be installed on the system. This is expected to be done by ST Toolset.msi, as explained in previous posts. Perhaps are you facing some other issue: to ensure, please have a look at the file stvd/swim/error.log after the error. If it differs from my previous hypothesis, please post it.

    Best regards
    Visitor II
    September 21, 2015
    Posted on September 21, 2015 at 11:42

    Dear SC,

    i got similar on windows 10. register DAO with admin right work perfect. 

    thank you and best regards,

    alongkorn

    Visitor II
    September 21, 2015
    Posted on September 21, 2015 at 16:13

    I tried this solution suggested on Windows 10 and works perfectly. Thanks!

    Visitor II
    September 22, 2015
    Posted on September 22, 2015 at 12:17

    Hello,

    I tried to follow your indication on a Windows 7 system in order to solve the GDI error [40201]: can't access configuration database. Note that Windows system is installed in drive F:

    I tried to run ''ST Toolset.msi'' fron DAO folder, using recovery mode; the installation seems OK. But the error remains.

    The error.log file is attached to this post.

    After unregistered theDAODLL; but when I tried to register again the DLL an error occurred:

    ''The module F:\Program File\Common Files\Microsoft shared\DAO\DAODLL has been loaded but the call to a DllRegisterServer failed. Error code 0x80004005''

    May I try some other way?

    Thank You

    Maurizio

    ________________

    Attachments :

    Error.log : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzN6&d=%2Fa%2F0X0000000bKe%2FCcsHawjIbnI1lBVlMpDtXSXmoiXjFgAOsMc_rpg9HsU&asPdf=false
    Visitor II
    September 22, 2015
    Posted on September 22, 2015 at 12:17

    Hello,

    I tried to follow your indication on a Windows 7 system in order to solve the GDI error [40201]: can't access configuration database. Note that Windows system is installed in drive F:

    I tried to run ''ST Toolset.msi'' fron DAO folder, using recovery mode; the installation seems OK. But the error remains.

    The error.log file is attached to this post.

    After unregistered theDAODLL; but when I tried to register again the DLL an error occurred:

    ''The module F:\Program File\Common Files\Microsoft shared\DAO\DAODLL has been loaded but the call to a DllRegisterServer failed. Error code 0x80004005''

    My I try some other way?

    Thank You

    Maurizio

    ________________

    Attachments :

    Error.log : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzN1&d=%2Fa%2F0X0000000bKf%2Fg4i4mGXhIA64z4DZhIIfiCUx.7g6jNwom5Qpe6ZKelI&asPdf=false
    Visitor II
    February 27, 2016
    Posted on February 27, 2016 at 12:36

    Hi,

    I am having the same problem as Maurizio. I've followed everything detailed in this post (including numerous reinstalls) and I still get the gdi-error. When removing the DLL and adding it again, I receive the same error as Maurizio.

    It's a stock installation on C:\ using Windows 8 64 bit.

    Visitor II
    March 4, 2016
    Posted on March 04, 2016 at 10:59

    ''DllRegisterServer failed. Error code 0x80004005''

    I solved this by running the command prompt as administrator (I wasn't aware that I didn't do this before), Win-button -> search for command -> right click Command Prompt -> click Run as administrator. DLL now registers and debug works, issue is fixed.

    Visitor II
    June 3, 2016
    Posted on June 03, 2016 at 13:39

    Visitor II
    November 13, 2018

    I am getting the below error after flashing the code and when tied to enter debug mode

    ---------------------------

    ST Visual Develop

    ---------------------------

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

    ---------------------------

    OK  

    ---------------------------

    1) I tried this,  ''C:\Program Files (x86)\STMicroelectronics\st_toolset\stvd\dao\ST Toolset.msi'' , Did not work.

    2) Tried this : cmd.exe - run as administrator

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

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

    Did not work.

    :( :( :(