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

CH32 devices? #8

Open
MickGyver opened this issue May 22, 2021 · 4 comments
Open

CH32 devices? #8

MickGyver opened this issue May 22, 2021 · 4 comments

Comments

@MickGyver
Copy link

MickGyver commented May 22, 2021

Can anything be done to make CH32F103C8T6 devices work? I have tried several bootloaders but have only managed to get Roger Clarke's bootloader to work, the other ones, including this one gives the error "device descriptor request failed". HID device firmware also works fine, device is detected properly in Windows 10.

@TheKikGen
Copy link
Owner

TheKikGen commented May 27, 2021

Hi. This is probably not linked with software but with hardware. CH32 are clones of STM32....
Did you check USB resistors ?
Did you check on several computer ?
Are you using a "Bluepill" ?

@MickGyver
Copy link
Author

Thanks for the reply! The USB resistor is 1.5K. Some HID joystick code I tested works fine on the board when uploaded using ST-Link, the bootloader by Roger Clark (stm32duino) also works fine, but I don't want to use that since it requires drivers.

@TheKikGen
Copy link
Owner

TheKikGen commented Jun 2, 2021

If you are able to, you could increase waiting time in the firmware here :

void Reset_Handler(void)

SLEEP_M(1); => SLEEP_M(100)

@MickGyver
Copy link
Author

Thanks for the help, I just tried it but alas, the problem remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants