Comments (9)
some log, not very useful, but anyway:
[I/USB] Setup: bmRequestType 0x80, bRequest 0x06, wValue 0x0100, wIndex 0x0000, wLength 0x0040
!!! 64, 64 // usbd_event_ep0_setup_complete_handler
int 18 64 // setuping 18 bytes to send
send data or status 18 // and invoke port send function
usbd_ep_start_write l 18 //
ep_idx = 0 // sending 18 bytes, comparing to 64 max
data_len 18 64 //
finish //
in0 // this is from IRQ handler I got it because data sent
usbd_event_ep_in_complete_handler //
usbd_event_ep0_in_complete_handler 18 // all data sent, start reading
+++18 536871130 0 //
sent //
start read //
usbd_ep_start_read l 0 // port read func invoke
in0 // again getting in irq for ep0
usbd_event_ep_in_complete_handler //
usbd_event_ep0_in_complete_handler 18 //
!!EEEE // this is message that we try decrement 0 for 18 bytes
+++18 536871148 0
sent
start read
usbd_ep_start_read l 0
in0
... again and again same
from cherryusb_wch.
After deep evaluation, I can see that ch32v103 has cuted IP similar as ch32v307 USBFS. Adjustment needed.
from cherryusb_wch.
Finally after regs file adjustment I got
CherryUSB device cdc acm example
3.3V
ENABLE
cdc_acm_init() done
usbd_set_address 0
[I/USB] Setup: bmRequestType 0x80, bRequest 0x06, wValue 0x0100, wIndex 0x0000, wLength 0x0040
[D/USB] EP0 send 18 bytes, 0 remained
[D/USB] EP0 recv out status
usbd_set_address 0
[I/USB] Setup: bmRequestType 0x00, bRequest 0x05, wValue 0x0027, wIndex 0x0000, wLength 0x0000
usbd_set_address 39
[D/USB] EP0 send 0 bytes, 0 remained
[I/USB] Setup: bmRequestType 0x80, bRequest 0x06, wValue 0x0100, wIndex 0x0000, wLength 0x0012
[D/USB] EP0 send 18 bytes, 0 remained
[D/USB] EP0 recv out status
[D/USB] EP0 send 18 bytes, -18 remained
[D/USB] EP0 send 64 bytes, -82 remained
[D/USB] EP0 send 64 bytes, -146 remained
[D/USB] EP0 send 64 bytes, -210 remained
[D/USB] EP0 send 64 bytes, -274 remained
[D/USB] EP0 send 64 bytes, -338 remained
[D/USB] EP0 send 64 bytes, -402 remained
[D/USB] EP0 send 64 bytes, -466 remained
[D/USB] EP0 send 64 bytes, -530 remained
[D/USB] EP0 send 64 bytes, -594 remained
[D/USB] EP0 send 64 bytes, -658 remained
[D/USB] EP0 send 64 bytes, -722 remained
usbd_set_address 0
from cherryusb_wch.
dmesg
[189831.352753] usb 3-13.2: new full-speed USB device number 101 using xhci_hcd
[189831.580926] usb 3-13.2: unable to read config index 0 descriptor/start: -75
[189831.580930] usb 3-13.2: can't read configurations, error -75
[189831.684676] usb 3-13.2: new full-speed USB device number 102 using xhci_hcd
[189847.092758] usb 3-13.2: device descriptor read/64, error -110
from cherryusb_wch.
Only support v307, thanks.
from cherryusb_wch.
Although its ip is the same, but some registers will be not the same we do not know, and we will not support other chips.
from cherryusb_wch.
Although its ip is the same, but some registers will be not the same we do not know, and we will not support other chips.
why you do not want support other WCH chips? Are there some issues with WCH?
from cherryusb_wch.
No official support, i do not want to waste my time on this.And their usb ips are the same but not the same.
from cherryusb_wch.
Got it. Thanks. If I manage get it working on ch32v103, I let you know.
from cherryusb_wch.
Related Issues (12)
- USB Host low-speed device enumeration HOT 12
- ch32 usbFS HOT 9
- 有计划支持CH569吗? HOT 10
- 请问是否可以通过cherryUSB库同时使用CH582或CH32V307的两个USB口。 HOT 1
- Has USB HS devices been tested on CH32V307? HOT 2
- audio_v1_mic_multichan_template not working properly HOT 9
- Multiple USB instances on MCU with multiple USB ports HOT 6
- 有大佬试过V307的host吗? HOT 2
- CH32V307 USB HS UVC is ok? HOT 3
- Compiling RISC-V toolchain HOT 5
- 请问CH32V307开发板USBH调试USBD_CDC_ACM例程遇到的问题 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cherryusb_wch.