Comments (4)
Hello @arilink ,
Could you please have a look on this wiki page and let us know if it would be helpful to progress on your implementation?
https://wiki.st.com/stm32mcu/wiki/Category:USB
And then for the FiFo configuration, normally you don't need to go much into details since the HAL provides you the abstraction layer for configuration, reading and writing. You just need to call the upper layer (class) functions.
In case you need deep insight on FIFOs configuration and usage, you can refer to the STM32 reference manual that contains all these deatails.
Kind Regards,
from x-cube-azrtos-h7.
@CHAMSTM hello,
It’s hard for me to convince myself to develop with questions. Although the system works, I don’t understand why.
0. This document and Azure USBX document https://docs.microsoft.com/zh-cn/azure/rtos/usbx/ I have studied carefully but I can’t solve all my doubts
The example I refer to is x-cube-azrtos-h7-main\x-cube-azrtos-h7-main\Projects\STM32H747I-DISCO\Applications\USBX\Ux_Device_HID_CDC_ACM\MDK-ARM
I will list all my doubts below and ask you to help me answer them.
(1) tx_application_define()->App_USBX_Device_Init()->usbx_app_thread_entry()->MX_USB_Device_Init() calls HAL_PCDEx_SetRxFiFo() and 4 HAL_PCDEx_SetTxFiFo() in the initialization function of the USB hardware
(2) App_USBX_Device_Init()->USBD_Get_Device_Framework_Speed() is for generating descriptors. I used USBLyzer for analysis. In the end, there is 1 configuration descriptor, 3 interface descriptors, 4 endpoint descriptors, and 1 report descriptor.
my question:
- How does the FIFO created in MX_USB_Device_Init() match the endpoint?
- There are 4 TxFiFo created in MX_USB_Device_Init(), but in fact there are only 3 IN endpoints. Why?
- In the USBX document of Azure, the descriptor is directly made into an array, while the sample program uses a lot of functions to implement it. What are the benefits of this? Not easy to analyze
4.ux_app_parameters_change() corresponds to CDC Control. How can I operate CDC Control to change the baud rate and other operations? - ux_device_class_cdc_acm_read() reads data. How to make sure it reads the correct endpoint data?
from x-cube-azrtos-h7.
This is USB Descriptor generate by USBLyazer:USBX Study.zip
from x-cube-azrtos-h7.
@CHAMSTM Did no one answer the question?
from x-cube-azrtos-h7.
Related Issues (20)
- Nx_TCP_Echo_Client on Nucleo-H753ZI: ETH not working HOT 3
- HTTPS server 'hello world' example HOT 3
- Update info on README.md HOT 2
- Azure IOT Addon HOT 4
- Nx_TCP_Echo_Client example on STM32H735G-DK HOT 4
- MQTT_KEEP_ALIVE_TIMER define value too big HOT 1
- SNMP Addon HOT 1
- How to use Threadx HOT 4
- usbx cdc acm, missing zlp HOT 3
- STM32H743 Timer HAL Channel Start and Stop
- Difference between package downloaded from ST website HOT 1
- FX_IO_ERROR on Fx_NoR_Write_Read_File example HOT 4
- Return value type error in ux_dcd_stm32.h HOT 2
- usb dma HOT 2
- Azure-IOT Addon HOT 2
- Bug in generated code for USBX with CDC-ECM Class HOT 1
- HTTPS web server not compiling - Latest version of CubeMX CubeIDE X-CUBE-AZRTOS-H7 HOT 1
- Is there an example of a USB host connected to a USB camera? HOT 1
- ux_device_class_hid_event_set stucks when transmitting using endpoint 2 HOT 1
- Update FileX driver's state after UNINIT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from x-cube-azrtos-h7.