cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO Toggle M4 FW Issue with STM32MP157D-DK1 and STM32CubeMX

BGibs
Associate II

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?

1 REPLY 1
PatrickF
ST Employee

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.

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.