Skip to main content
Senior
June 5, 2025
Question

On STM32H747IGT6, HSEM channel 0 is reserved?

  • June 5, 2025
  • 4 replies
  • 499 views

Application note AN5361 "Setting up with ST-LINK GDB server" says "Set the Cortex®-M7 core running so that the HSEM semaphore is released and Cortex®-M4 wakes up from Stop mode" and this post implies that it's "HSEM 0" which I'm assuming is HSEM channel 0.

Am I correct that HSEM channel 0 is not available for use by my application?  Is that fact documented in the Reference Manual (I can't find it anywhere)?

 

4 replies

cbcooperAuthor
Senior
June 12, 2025

ping

Amel NASRI
Technical Moderator
June 17, 2025

Hi @cbcooper ,

I'm not sure that there is any restriction to use HSEM 0.

In this article How to implement inter-processor communication in an STM32H7 using HSEM, the provided example is based on the usage of HSEM 0. Try to follow the same steps and check if it is working or not for you.

-Amel

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.
cbcooperAuthor
Senior
June 17, 2025

So what does Application note AN5361 mean when it says "The Cortex®‑M4 must execute the code and go to Stop mode before the Cortex®‑M7 can start executing the code and wake up the Cortex®‑M4 by releasing a hardware semaphore" and " Set the Cortex®-M7 core running so that the HSEM semaphore is released and Cortex®-M4 wakes up from Stop mode"?

cbcooperAuthor
Senior
June 23, 2025

ping

TDK
Super User
June 23, 2025

HSEM 0 is not reserved.

If you follow the example project, they choose to use HSEM 0 in such a way to signal that CM4 is ready. This isn't a requirement.

"If you feel a post has answered your question, please click ""Accept as Solution""."
cbcooperAuthor
Senior
June 24, 2025

That is a correct statement regarding the project described in the article "How to implement inter-processor communication in an STM32H7 using HSEM" but my most recent question in this thread is trying to understand what is meant in Application note AN5361.

Thanks

TDK
Super User
June 24, 2025

The example project uses HSEM0 in that manner. The AN describes this.

"If you feel a post has answered your question, please click ""Accept as Solution""."