Skip to main content
Associate III
Apr 15, 2025 7:38 AM UTC
Solved

Regarding GPIO PIN Mode in STM32MP257F-DK

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.
Zakaria1
Zakaria1Best answer
ST Employee
Jun 19, 2025 2:02 PM UTC

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

In order 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.

1 reply

Zakaria1
Zakaria1Best answer
ST Employee
Jun 19, 2025 2:02 PM UTC

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

In order 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.