2024-02-06 08:59 AM
Dear ST support team,
I am using STM32-H755 for my motor control application. I am using Hardware Semaphore for synchronization between two cores. What I did, I developed the notification release in M4 in a timer interrupt routine as below:
This notifies the M7 with frequency of 32KHz.
Then I use the below code in M7:
The problem is that the frequency in M7 HSEM1 interrupt is not organized and sometimes it changes. I have attached a picture of toggled pin. I did a research on that but nothing found relating this issue.
Would you please help me with this issue?
Best regards,
Hamidreza
2024-02-06 12:13 PM - edited 2024-02-06 12:14 PM
Looks like you have other code being executed that delays HSEM1_IRQHandler from being called. Move it up in priority if that is desired.
Also could be user code called by HAL_HSEM_IRQHandler that could be delaying things. Not much insight into what's happening in the system.