2024-07-16 05:05 AM
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?
.
2024-09-11 10:03 AM
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.