Skip to main content
Graduate
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)?

 

    This topic has been closed for replies.

    4 replies

    cbcooperAuthor
    Graduate
    June 12, 2025

    ping

    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

    cbcooperAuthor
    Graduate
    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
    Graduate
    June 23, 2025

    ping

    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.

    cbcooperAuthor
    Graduate
    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

    Super User
    June 24, 2025

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