Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faild to found entry on Windows OS #5

Open
tonyho opened this issue Mar 11, 2023 · 6 comments
Open

Faild to found entry on Windows OS #5

tonyho opened this issue Mar 11, 2023 · 6 comments
Labels
enhancement New feature or request faq

Comments

@tonyho
Copy link

tonyho commented Mar 11, 2023

Using in Windows 10 LTSC with Administrator permission
Error Log:

.\wlink.exe
Error: USB error: Entity not found

Caused by:
    Entity not found

I can use MountRiver IDE to burn in the same environment even if the wlink command line failed, so the USB and the wch link tool are OK.

@UCSIG
Copy link

UCSIG commented Apr 13, 2023

You have to change the driver that Windows uses to access the WCH-Link to WinUSB (or libusb-win32), so that the wlink tool can talk to the WCH-Link device.

You can do that with the Zadig tool. In Zadig, list all devices by selecting Options -> List All Devices. Now you should be able to see WCH-Link (Interface 0) and WCH-Link (Interface 1) in the devices dropdown list.

Select WCH-Link (Interface 0). The currently installed driver will most likely be WCHLink_A64. Select WinUSB as the new driver and click Replace Driver to replace the currently installed one with WinUSB. Now you should be able to use the wlink cli tool.

However, now you can't use MounRiver Studio anymore to flash the mcu. In order to be able to use MounRiver again, use their driver installer to replace the WinUSB driver with their driver. The installer can be found in the programs installation directory under LinkDrv\WCHLink\DRVSETUP64\DRVSETUP64.exe.

@andelf andelf added the faq label Jul 1, 2023
@andelf
Copy link
Contributor

andelf commented Oct 3, 2023

I should have added a better error description.

@andelf andelf added the enhancement New feature or request label Nov 5, 2023
@andelf
Copy link
Contributor

andelf commented Nov 5, 2023

I'm writing an interface for the official Windows driver. The only drawback is.... it should be 32-bit.

@andelf
Copy link
Contributor

andelf commented Jan 7, 2024

Could you help to check the nightly release?
I've added a windows native driver support.

@Plecra
Copy link

Plecra commented Jan 16, 2024

I've tried the new windows driver - plenty of features work :) But serial debug print doesn't seem to get properly forwarded to the COM port

Edit: The serial enable command works too! I'm afraid I muddled around with a lot of settings but with the newest versions of all the WCH-Link drivers I've got working debug -> com5 printf ^^ Awesome job

@andelf
Copy link
Contributor

andelf commented Jan 17, 2024

@Plecra , Thanks for your feedback.

I'm looking for a method to simplify command lines.
An acceptable approach would be to include commonly used combinations in the --help doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request faq
Projects
None yet
Development

No branches or pull requests

4 participants