2023-10-20 03:01 AM
Hello ,
We are devloping application using NUCLEO-H503 , try to install USBX as CDC-ACM port and transfer data to host device ,
1. Try to install Driver for USBX , but not found stmelectronics.xcube-azrtos-h5
How to use NUCLE-H503 USB in Device mode only as CDC-ACM port
Solved! Go to Solution.
2023-10-20 03:30 AM - edited 2023-10-20 06:19 AM
Hello @pooja ,
The xcube-azrtos-h5 is not available.
For USBX : Please before enable the THREADX , then you can use the USBX :
Foued
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-10-20 03:30 AM - edited 2023-10-20 06:19 AM
Hello @pooja ,
The xcube-azrtos-h5 is not available.
For USBX : Please before enable the THREADX , then you can use the USBX :
Foued
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-10-25 09:23 PM
Hello Foued ,
Thanks for your support
NUCLEO-H503 : USB Driver
Import example code from package en.stm32cubeh5-v1-1-0 STM32Cube_FW_H5_V1.1.0-Projects-NUCLEO-H503RB-Applications-USBX-Ux_Device_CDC_ACM
and Run the example using STMcubemx IDE
But gives error for
status = MX_USBX_Device_Init(memory_ptr);
if (status != UX_SUCCESS)
{
/* USER CODE BEGIN MX_USBX_Device_Init_Error */
while(1)
{
}
/* USER CODE END MX_USBX_Device_Init_Error */
}
Wait in while
Check error status : UX_MEMORY_INSUFFICIENT
2024-04-27 01:13 AM
add size
#define UX_DEVICE_APP_MEM_POOL_SIZE 30000
#define USBX_DEVICE_MEMORY_STACK_SIZE 25000
2024-04-27 01:18 AM
Hi
sorry my engish
in file stm32h5xx_hal_pcd.c written:
Configure PCD pin-out
hpcd.pData = pdev;
how is correct doing ?