Skip to main content
Visitor II
July 29, 2024
Question

GPIO Toggle M4 FW Issue with STM32MP157D-DK1 and STM32CubeMX

  • July 29, 2024
  • 1 reply
  • 584 views

Hi,

I wrote a program to toggle GPIO PD13 on the STM32MP157D-DK1 using STM32CubeIDE. 

I set the Boot pins on the STM32MP157D-DK1 board to Engineering mode and can start a debug session but it seems like the M4 does not toggle GPIO PD13 at all. Its like its not starting or working.

Below is a snippet of my code:

                              BGibs_0-1722222134592.png

Please assist me with this issue?

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    July 29, 2024

    Hi,

    this should be relatively easy to debug.

    Did you check the clock to the GPIO port is enabled ?

    Did you check the GPIO port is set in output mode ?

    If CubeMx did not generate this even if GPIO ouput is well configured, it is likely because GPIO is not assigned to Cortex-M4 (right-click on the pin).

    Regards.