Skip to main content
Graduate
March 6, 2025
Solved

STM32H7 GPIO control by both M4 and M7

  • March 6, 2025
  • 2 replies
  • 474 views

Hello,

I have a GPIO pin that is owned and used by the M4, i.e. Pin Context Assignment.  But on power-up, I'd like the M7 to do some work with it, toggle the state, before it starts the M4.  Is it possible for the M7 to programmatically take ownership of the GPIO pin, then transfer it back to the M4 just before it starts the M4?

Regards,

Robert 

    This topic has been closed for replies.
    Best answer by TDK

    Yes, both cores can access it at any time without any other setup. The context assignment in CubeMX only configures which core initializes the pin.

    2 replies

    TDKAnswer
    Super User
    March 6, 2025

    Yes, both cores can access it at any time without any other setup. The context assignment in CubeMX only configures which core initializes the pin.

    R_DSPAuthor
    Graduate
    March 6, 2025

    Great, thanks for the quick reply.

    Robert