2024-03-18 12:56 AM
Hello, I am having an issue with the STM32 GPIO. The problem is that immediately after supplying power to the chip, GPIOs such as PJ0, PJ1, PJ2, etc. are momentarily powered, behaving as if they were set as outputs.
Below is the test sequence:
1. I created the project without setting the GPIOs and then performed program verification on the chip.
2. I turned the chip off and then back on.
3. I monitored the power supply line of the chip and specific GPIO using an oscilloscope.
4. The result showed that when the power supply voltage increased to above 1.7V, the GPIO voltage also increased.
I hope this helps!
Solved! Go to Solution.
2024-03-18 05:22 AM - edited 2024-03-18 05:22 AM
Are the pins connected to anything? If not, don't assign any significance to pins that are floating. They can be influenced by any number of things, including cross-talk on the board.
If you need pins to have a defined state at reset, use an external pullup or pulldown.
2024-03-18 05:22 AM - edited 2024-03-18 05:22 AM
Are the pins connected to anything? If not, don't assign any significance to pins that are floating. They can be influenced by any number of things, including cross-talk on the board.
If you need pins to have a defined state at reset, use an external pullup or pulldown.
2024-03-24 10:08 PM
Thank you, TDK
We are used a output pin. But, nothing a external pullup or pulldown.