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).
Hello J A,
Can you please provide more information about your project and using of this function in it?
If this response, or one provided by another user, answers your question, please verify the answer. Thank you!
Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
See the S5D5_TB_CDC_ACM_non_blocking USB example:
/* Specify the read and write callback functions that can be used with the ux_device_class_cdc_acm_ioctl function */ call_back.ux_device_class_cdc_acm_parameter_read_callback = cdc_acm_read_callback; call_back.ux_device_class_cdc_acm_parameter_write_callback = cdc_acm_write_callback; status = ux_device_class_cdc_acm_ioctl(gp_cdc, UX_SLAVE_CLASS_CDC_ACM_IOCTL_TRANSMISSION_START, &call_back); The function ux_device_class_cdc_acm_ioctl returns 0x54
This function also returns 0x54 with the use of SSP 2.2.0.
This function returns 0x0 with ssp versions 2.0.0 and 2.1.0.
(Using the S5D5_TB_CDC_ACM_non_blocking USB example with the PK-S5D9 board)
Thank you for your answer. I will forward your request to the development team. Please wait a bit while they review it.
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.