This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM48L952 USB device Driver run normally in Bare-metal system, but have bug in ucos-ii system.

Other Parts Discussed in Thread: HALCOGEN

Hello:
TI official website use the following link to descript RM48 series chip's USB controller:

http://processors.wiki.ti.com/index.php/HALCoGen_USB_Device_-_driver_%26_CDC_Class.


According to the Link, Generate USB driver code using HalCoGen, New Create CCS Project with adding USB driver code. Load into hardware board, can run normally.


but, add USB driver code into CCS Project with uCOS-II OS, load into hardware board, If you do not insert the USB cable, run error, if you insert the USB cable, operating normally. why?


Before powering on, insert the USB cable is operating normally. Then disconnect the USB cable, and then plug in the USB cable, run normal.


I don't know how to do? I am looking forward to your help.

Best regards.

  • Clark,

    We don't really support this combination of the CDC and uCOS together because normally one big reason to use uCOS is to use their more full-featured USB stack rather than the simple demo.

    I don't know how to answer your problem - you'd need to do some additional debugging.
    Check the interrupts . when you plug/unplug there's a transition on VBUS and resets on the bus so maybe something is going wrong there.

    Check the state of all the USB device interrupts and let me know which in VIM you have enabled...

    -Anthony