cancel
Showing results for 
Search instead for 
Did you mean: 

Error in executing 'step' command in HAL_GPIO_Init

newbie_stm32
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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.

View solution in original post

2 REPLIES 2
STTwo-32
ST Employee

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

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