I use the virtual com to receive data from PC, and it works normal.
After finish receive data I want to disconnect and close virtual com.
I try call USB_Class_CDC_Deinit(g_app_handle) to finish the receive job.
Then I got a task error "mqx_not_resource_owner" on doing "_usb_device_deinit".
my flow is -
1. Init virtual com.
2. Receive data from PC.
3. call USB_Class_CDC_Deinit to disconnect with PC.
I try call USB_Class_CDC_Deinit on callback function.
It works normal.
but this not meet my requirement.
Is there something wrong with me?