Skip to main content
Visitor II
December 9, 2020
Question

STM32 USB Dedicated vs Normal Endpoints

  • December 9, 2020
  • 4 replies
  • 1265 views

Hello,

What is the difference between dedicated endpoint with normal endpoints in STM32 USB?

Thanks in advnace

    This topic has been closed for replies.

    4 replies

    Visitor II
    December 9, 2020

    Hi MMema.1,

    Can you explain more what do you mean by "dedicated" and "normal" ?

    Best Regards,

    Ons.

    Visitor II
    December 9, 2020

    As I saw in the HAL, there are two functions named activateEndpoint and activateDedicatedEndpoint

    Visitor II
    December 14, 2020

    Hi Memarnejad,

    Basically the difference in these two functions is to make the interrupt unmasked for either:

    • The global interrupt signal, or
    • The dedicated (EP1 only) signal

    You can take a look at Figure 753 of the STM32H742, STM32H743/753 and STM32H750 Value line advanced Arm®-based 32-bit MCUs Reference manual; in the first function there are lines setting the DAINTMSK register and the other function sets the DEACHMDK register. "EACH" text in the register name is a clue. The EACH registers allow selecting of an interrupt towards the "dedicated" interrupt output on the IP.

    You can also find an example of interrupt table (for F7) in pages 255 & 256 of the STM32F72xxx and STM32F73xxx advanced Arm®-based 32-bit MCUs reference manual.

    Best Regards,

    Ons.

    Visitor II
    December 17, 2020

    Hello,

    I did not understand what the difference is. We unmask the interrupt for normal EP as well, e.g. when we want to know the tx empty to push the next data