Skip to main content
newbie_stm32
Associate III
February 21, 2024
Solved

Error in executing 'step' command in HAL_GPIO_Init

Hi Community,

I am working on a stepper motor driver development board that uses SPI for configuration and a few GPIOs for control. The development board uses a 5V logic level and needs an interface to STM32G491RE. By referring to the datasheet I choose the following pins which are 5V tolerant (denoted by FT) for SPI (PC10, PC11, PC12, PA15) and GPIO (PA13, PA14).

newbie_stm32_0-1708493856966.pngnewbie_stm32_1-1708493883071.png

When I run a debug session I can see it crashes at HAL_GPIO_Init at the following line.

newbie_stm32_2-1708494023142.png

With a message on the console as below

newbie_stm32_3-1708494056497.png

What might be wrong?

STM32CubeIDE: 1.13.1

HAL : FW_G4 V1.5.1

This topic has been closed for replies.
STTwo-32
STTwo-32Best answer
ST Technical Moderator
February 21, 2024

Hello @newbie_stm32 

I suggest you to take a look at this post. It may help you.

Best Regards.

STTwo-32 

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.

2 replies

STTwo-32
STTwo-32Best answer
ST Technical Moderator
February 21, 2024

Hello @newbie_stm32 

I suggest you to take a look at this post. It may help you.

Best Regards.

STTwo-32 

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.
newbie_stm32
Associate III
February 21, 2024

Hi @STTwo-32, thanks for pointing it out. It solved the issue.