2025-10-28 4:07 AM
Message:
I have configured PA11 and PA12 pins in input mode, but they are not responding — I’m continuously getting a low level from the MCU side.
For testing purposes, I configured the same pins as output, and they work fine in output mode.
To verify hardware, I removed the MCU and checked the lines — they remain high, confirming that the hardware is OK.
Please suggest the possible reason or solution at the earliest.
2025-10-28 4:17 AM
Hello @Dharmendra_Singh and welcome to the community,
PA11 and PA12 have bot the USB function. Are you sure you configured the GPIO in the right way?
I suggest to attach your project in the discussion in zip file.
2025-10-28 4:19 AM
Did you really accept the solution?
2025-10-28 10:07 PM
2025-10-29 1:21 AM
Hello,
In next time please don't mark the solution as it was not solved. If it was mistakenly done, you can unmark it using this arrow:
I don't have the MCU part number to test but I don't see an issue in the IO config. Did you put a pull up or pull down resistors on the hardware. I don't see you configured the internal ones