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
  • ok friends,
    after some hours of Paddle i found that when i initialize usb core it return an error,code of main function is as below:

      int main(void){
      usbStatus stat;
    
      osKernelInitialize ();                    // initialize CMSIS-RTOS
    
      // initialize peripherals here
    
      // create 'thread' functions that start executing,
      // example: tid_name = osThreadCreate (osThread(name), NULL);
    
      osKernelStart ();                         // start thread execution
    
            stat = USBD_Initialize(0);
            //now stat is usbThreadError
            if(stat == usbOK)
                    stat = USBD_Connect(0);
    
            while(1)
            {
                    osDelay(1000);
            }
    }
    


    as you can see USBD_Initialize function return usbThreadError,now can any one give me some advice to how solve that??

Reply
  • ok friends,
    after some hours of Paddle i found that when i initialize usb core it return an error,code of main function is as below:

      int main(void){
      usbStatus stat;
    
      osKernelInitialize ();                    // initialize CMSIS-RTOS
    
      // initialize peripherals here
    
      // create 'thread' functions that start executing,
      // example: tid_name = osThreadCreate (osThread(name), NULL);
    
      osKernelStart ();                         // start thread execution
    
            stat = USBD_Initialize(0);
            //now stat is usbThreadError
            if(stat == usbOK)
                    stat = USBD_Connect(0);
    
            while(1)
            {
                    osDelay(1000);
            }
    }
    


    as you can see USBD_Initialize function return usbThreadError,now can any one give me some advice to how solve that??

Children