Skip to main content
Explorer
April 15, 2025
Solved

Regarding GPIO PIN Mode in STM32MP257F-DK

  • April 15, 2025
  • 1 reply
  • 592 views

Hello

We are currently working with the STM32MP257F-DK board and attempting to toggle the GPIO pins on Port Z. However, we have observed that the mode of the pins in GPIO Z remains in Analog mode, even when we attempt to overwrite it. Notably, the other GPIO ports are functioning as expected.
We would appreciate your guidance on how to properly activate GPIO Port Z and toggle a pin on this port

 

Thanks & Regards

Akshitha Pattem

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

    Hello @Aks,

    This Port Z is somewhat different from the others because it can be allocated to CPU3, specifically the M0+, which means that CPU1 (A35) or CPU2 (M33) will no longer be able to configure this port.
    Can you check the value of the RCC_C3CFGR register and see if
    Bit 24 (GPIOZC3EN: GPIOZ allocation to CPU3 enable) is set to 1?

    If so, this bit should be set to 0 to deallocate GPIOZ from CPU3.
    Thanks & Regards
    Zakaria

    1 reply

    Zakaria1Answer
    Technical Moderator
    June 19, 2025

    Hello @Aks,

    This Port Z is somewhat different from the others because it can be allocated to CPU3, specifically the M0+, which means that CPU1 (A35) or CPU2 (M33) will no longer be able to configure this port.
    Can you check the value of the RCC_C3CFGR register and see if
    Bit 24 (GPIOZC3EN: GPIOZ allocation to CPU3 enable) is set to 1?

    If so, this bit should be set to 0 to deallocate GPIOZ from CPU3.
    Thanks & Regards
    Zakaria