2020-09-10 12:32 AM
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.
2020-09-10 04:49 AM
> 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.