2014-03-27 12:09 PM
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
2016-12-13 06:51 AM
Thanks SC for your valuable support.
I also faced similar issue in Windows 8.1 Pro based system. I installed the toolset with a admin account and then was able to debug with a normal account login. thanks.
2017-05-16 04:26 PM
Thank you very much! Your solution solved my problem!
My system: Win7 x64
2017-07-21 03:06 PM
Thank you very very help full info & (solved my problem)
2017-12-18 12:33 AM
My OS is 64 bit windows 10, and this solution worked perfectly. Thanks a lot!
2018-07-11 03:45 AM
This solved the problem on my 64bit Windows 10 system. Thank you!!
2018-11-13 08:58 AM
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.
:( :( :(
2018-11-24 03:43 PM
Thank you very much, I can go to bed with the smile now :)
2019-02-15 05:34 AM
Having done as suggested, in the first step result is ok.
But when I try the second step I get the reply:
"''C:\Program Files (x86)\Common Files\Microsoft Shared\DAO\DAO350.DLL'' was loaded but the call to DllRegisterServer failed with error code 0x80004005
For more information about this problem, search online using the error code as a search item."
I did that but no success.
Need help otherwise I will never be use the debugger.
2019-07-08 10:52 PM
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
2019-08-15 04:57 AM
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!