cancel
Showing results for 
Search instead for 
Did you mean: 

USBX blocking ISR

MHerr.8
Associate

Hi,

during porting the USBX as host stack to an stm32h7 I was getting an error indication,

that a semaphore was used during interrupt context (OTG_HS_IRQHandler).

For my opinion, it is wrong to call the generated code out of the ISR without decoupling the context.

 

How did you solve the problem? Is there a posibility in cubemx the generate code with decoupling the context?

.

1 REPLY 1
FBL
ST Employee

Hi @MHerr.8 

AFAIK, semaphores should not be used directly in ISR. Could you explain what do you mean MX generates code in decoupling context?

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.