Git Product home page Git Product logo

Comments (9)

nikitos1550 avatar nikitos1550 commented on July 24, 2024

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.

nikitos1550 avatar nikitos1550 commented on July 24, 2024

After deep evaluation, I can see that ch32v103 has cuted IP similar as ch32v307 USBFS. Adjustment needed.

from cherryusb_wch.

nikitos1550 avatar nikitos1550 commented on July 24, 2024

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.

nikitos1550 avatar nikitos1550 commented on July 24, 2024

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.

sakumisu avatar sakumisu commented on July 24, 2024

Only support v307, thanks.

from cherryusb_wch.

sakumisu avatar sakumisu commented on July 24, 2024

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.

nikitos1550 avatar nikitos1550 commented on July 24, 2024

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.

sakumisu avatar sakumisu commented on July 24, 2024

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.

nikitos1550 avatar nikitos1550 commented on July 24, 2024

Got it. Thanks. If I manage get it working on ch32v103, I let you know.

from cherryusb_wch.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.