cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO pin of STM32F031G4U6 may be broken during connecting LSM6DSL.

HUega.1
Associate

I control LSM6DSL by using STM32F031G4U6.

INT2 of LSM6DSL connects PA8 of STM32F031G4U6.

PA8 of STM32F031G4U6 set output port, no pull-up, no-pull down.

I mistake the configuration of LSM6DSL.

I must set INT2 pin of LSM6DSL to input port, but I set it to output port.

So the current consumption of the circuit board increased.

When I don't use PA8, the current consumption is OK.

I think PA8 was broken.

Why was PA8 broken?

Vdd of STM32F031G4U6 and LSM6DSL is same.

Vdd is generated by the 3.3V regulator.

1 REPLY 1
TDK
Guru

> INT2 of LSM6DSL connects PA8 of STM32F031G4U6.

> PA8 of STM32F031G4U6 set output port, no pull-up, no-pull down.

The INT2 pin should be an input on the MCU, not an output.

If you feel a post has answered your question, please click "Accept as Solution".