Skip to main content
Explorer
April 22, 2025
Solved

STM32H723 GPIO Lock set after reset

  • April 22, 2025
  • 4 replies
  • 1126 views

I have a Nucleo-H723ZG board.  The GPIO lock bits are set at reset so I cannot set up the ports.  See Attached screenshot.  I can run code just fine and the original demo code did toggle the LEDs.

Am I missing something here? 

    This topic has been closed for replies.
    Best answer by waclawek.jan

    > all of the GPIOA registers report 0xABFFFFFF

     

    That's sign of GPIOA clock not being enabled in RCC.

    JW

    4 replies

    Super User
    April 22, 2025

    Since all of the GPIOA registers report 0xABFFFFFF, I'm more inclined to believe this is a debugger/IDE issue.

    NiramasAuthor
    Explorer
    April 22, 2025

    The memory dump shows the same values.

    Technical Moderator
    April 22, 2025

    Hello @Niramas and welcome to the ST community,

    I'm confused. You said:


    @Niramas wrote:

    I can run code just fine and the original demo code did toggle the LEDs.


    The LEDs are toggling even the lock bits are set after reset?

    NiramasAuthor
    Explorer
    April 22, 2025

    The screenshot is not from the demo it is from our SW.  Notice it is stopped at the reset vector though.

    NiramasAuthor
    Explorer
    April 22, 2025

    The demo came pre loaded on the device and is gone now.

    Super User
    April 22, 2025

    > all of the GPIOA registers report 0xABFFFFFF

     

    That's sign of GPIOA clock not being enabled in RCC.

    JW

    Super User
    April 22, 2025

    I had always thought GPIOA clock was required to be enabled for SWD to be active and was therefore enabled by default. Testing it now, it clearly (a) isn't enabled by default and (b) doesn't need to be enabled for SWD to work.

    Super User
    April 28, 2025

    @TDK,

    The exact effect of GPIO clock is not very clear from the documentation. I've seen hinted somewhere (in relationship to power consumption reduction), that you need it only to access the registers (which implies also that you need it to be able to read pins set as Input and change state of those set as Output), but once those are set e.g. to AF, you can switch the GPIO clock off - the muxes are set and the peripherals to which signals are connected use their own clock to sample or drive the signals.

    JW

    NiramasAuthor
    Explorer
    April 22, 2025

    ++++ Problem Solved ++++

     

    Thank You