Setting callback functions for ux_device_class_cdc_acm with SSP (2.3.0 and also 2.4.0) fails

The functions ux_device_class_cdc_acm_ioctl(g_cdc, UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_START, &call_back) and ux_device_class_cdc_acm_ioctl(g_cdc, UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_STOP,  UX_NULL) returns error 0x54 (UX_FUNCTION_NOT_SUPPORTED).

Error?

Parents Reply
  • Hello,

    Apologies for the delay!

    After checking your issue internally, we would like to inform you that:

    If you add USBX CDC_ACM Source, USBX Source (and ThreadX source) to an SSP 2.4.0 project.

     And take a look in the file ux_device_class_cdc_axm_ioctl.c

    You will see the case 
    UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_START is disabled, so it will fall through to the default case and the status you will get is UX_FUNCTION_NOT_SUPPORTED.

    Which as you mentioned is defined as : 

    #define UX_FUNCTION_NOT_SUPPORTED 0x54   in ux_api.h.

    If you go to USBX Source Properties tab and you change disable CDC ACM Non-Blocking Transmission to No in the properties for USBX source:

    Case  UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_START will be enabled.

    Hope it helps.

    Regards,

    IK_Renesas

Children
No Data