This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can i use usb custom class??

Hi to all,
I am new in keil v5 and i want to implement usb ufi class mass storage under cbi protocol and i want use keil usb custom class in order to done that,but i do not know how i can use keil custom class and port it to my MCB17000 board and after searching in internet i do not find anything about that.
Can any one me how can i create and config project with keil usb custom class??

Parents
  • as i said i want to implement ufi spec under cbi communication protocol so i need 4 endpoint as below :

    endpoint 0 : default control endpoint
    endpoint 1 : bulk in and out endpoint
    endpoint 2 : interrupt endpoint
    


    i add these endpoints to USBD_Config_CustomClass_0.h as i need, but when leaving processing of SetConfiguration command to usb_stack it fail to handle it, i say this because after receiving this command and i return usbdRequestNotProcessed, usb_stack do not call USBD_Device0_Endpoint0_SetupPacketProcessed function that must call after processing received command.
    also after leaving this command to usb_stack i dose not receive any setup packet in USBD_Device0_Endpoint0_SetupPacketReceived function.
    now i am searching for solution for this problem.

Reply
  • as i said i want to implement ufi spec under cbi communication protocol so i need 4 endpoint as below :

    endpoint 0 : default control endpoint
    endpoint 1 : bulk in and out endpoint
    endpoint 2 : interrupt endpoint
    


    i add these endpoints to USBD_Config_CustomClass_0.h as i need, but when leaving processing of SetConfiguration command to usb_stack it fail to handle it, i say this because after receiving this command and i return usbdRequestNotProcessed, usb_stack do not call USBD_Device0_Endpoint0_SetupPacketProcessed function that must call after processing received command.
    also after leaving this command to usb_stack i dose not receive any setup packet in USBD_Device0_Endpoint0_SetupPacketReceived function.
    now i am searching for solution for this problem.

Children