cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 USB Dedicated vs Normal Endpoints

Mehran Memarnejad
Associate III

Hello,

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

Thanks in advnace

4 REPLIES 4
Ons KOOLI
Senior III

Hi MMema.1,

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

Best Regards,

Ons.

Mehran Memarnejad
Associate III

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

Ons KOOLI
Senior III

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.

Mehran Memarnejad
Associate III

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