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

8 pin and 16 pin error #25

Closed
LenarOsx opened this issue Sep 16, 2023 · 9 comments
Closed

8 pin and 16 pin error #25

LenarOsx opened this issue Sep 16, 2023 · 9 comments

Comments

@LenarOsx
Copy link

I worked! its amazing, all examples worked but cdc, com port doesn't work.

I tried the code on ch32v003 over 8pin and 16pin version, with no luck.
Is there a way to make it work on those versions, or is the code for the 20 pin version only?
Thanks.!

@cnlohr
Copy link
Owner

cnlohr commented Sep 18, 2023

CDC doesn't work on Windows.

There were some recent changes where you can reconfigure it to use other pins. It should work fine on other variants of the chip.

@LenarOsx
Copy link
Author

LenarOsx commented Sep 25, 2023

I have downloaded the latest code, but it didn't work on 8 and 16 pin version, I found a specific configuration than kind of worked, port A, dm 2, dp 1. It does not show any error like 'invalid usb descriptor', it appears in usb device manager, but it does nothing.
no midi, no hid just shows correctly in the listed devices.

@cnlohr
Copy link
Owner

cnlohr commented Sep 26, 2023

Are those ports reconfigurable? Also did you try swapping them?

@mcu23
Copy link

mcu23 commented Oct 25, 2023

PC1, PC2, PC4 gamepad demo, Test OK.

usb_config.h

#define USB_DM 4
#define USB_DP 2
#define USB_DPU 1
 
#define USB_PORT C

@cnlohr
Copy link
Owner

cnlohr commented Oct 26, 2023

I have linked the above message in the README. Closing issue now. Thank you for testing.

@cnlohr cnlohr closed this as completed Oct 26, 2023
@dienvx1997bn
Copy link

PC1, PC2, PC4 gamepad demo, Test OK.

usb_config.h

#define USB_DM 4
#define USB_DP 2
#define USB_DPU 1
 
#define USB_PORT C

i design my own device but not work
#define USB_DM 2
#define USB_DP 4
#define USB_DPU 1
#define USB_PORT C

@cnlohr
Copy link
Owner

cnlohr commented Dec 27, 2023

PC1, PC2, PC4 gamepad demo, Test OK.
usb_config.h

#define USB_DM 4
#define USB_DP 2
#define USB_DPU 1
 
#define USB_PORT C

i design my own device but not work #define USB_DM 2 #define USB_DP 4 #define USB_DPU 1 #define USB_PORT C

Please clarify - what errors are you receiving on the OS end? Have you tested this with a known-good board configuration? Please also share your schematic. (And it probably makes sense to open a new ticket)

@dienvx1997bn
Copy link

dienvx1997bn commented Dec 27, 2023

PC1, PC2, PC4 gamepad demo, Test OK.
usb_config.h

#define USB_DM 4
#define USB_DP 2
#define USB_DPU 1
 
#define USB_PORT C

i design my own device but not work #define USB_DM 2 #define USB_DP 4 #define USB_DPU 1 #define USB_PORT C

Please clarify - what errors are you receiving on the OS end? Have you tested this with a known-good board configuration? Please also share your schematic. (And it probably makes sense to open a new ticket)

Base on your suggestion design, and use ch32v003 sop8 chip
image

and after EOP doesn't have ACK signal
image

@cnlohr cnlohr reopened this Dec 27, 2023
@cnlohr
Copy link
Owner

cnlohr commented Dec 27, 2023

I have passed this issue off to some folks in my Discord, a few who got the SOP-8 version working. You may want to join that discord and see if they can help more. I've never used the SOP-8 version of the 003. https://discord.gg/CCeyWyZ

I don't see any reason port C "shouldn't" work, but also, I don't have experience making it work. Hopefully someone on the discord can shine some light.

@cnlohr cnlohr closed this as completed Feb 2, 2024
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

4 participants