Code Monkey home page Code Monkey logo

Comments (4)

CHAMSTM avatar CHAMSTM commented on August 16, 2024

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.

arilink-tech avatar arilink-tech commented on August 16, 2024

@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:

  1. How does the FIFO created in MX_USB_Device_Init() match the endpoint?
  2. There are 4 TxFiFo created in MX_USB_Device_Init(), but in fact there are only 3 IN endpoints. Why?
  3. 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?
  4. ux_device_class_cdc_acm_read() reads data. How to make sure it reads the correct endpoint data?

from x-cube-azrtos-h7.

arilink-tech avatar arilink-tech commented on August 16, 2024

This is USB Descriptor generate by USBLyazer:USBX Study.zip

from x-cube-azrtos-h7.

arilink-tech avatar arilink-tech commented on August 16, 2024

@CHAMSTM Did no one answer the question?

from x-cube-azrtos-h7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.