2025-03-28 2:50 AM
I am using a NUCLEO-F767ZI Board.
Previously I have not used or configured any GPIO. Then I used CubeMX to reconfigure 3 Pins to Inputs with Pull-Down like this:
if (HAL_GPIO_ReadPin(button_uncouple_GPIO_Port, button_uncouple_Pin) == GPIO_PIN_SET) {
In the code I was using a basic check like the one above. After flashing the new code to the board. The board no longer appeared as a usb device. Instead the system log reported
kernel: usb usb1-port1: over-current condition
I was able to recover access to the board by powering the board using an external 5v power supply to the E5V Port and GND. Then I could flash an older version of my code without the GPIO configured and everything is working fine again, also without the external power supply.
I do not understand why the reconfiguration of the pins as input pull-down lead to this. This should not result in an increase of current usage?
2025-03-28 7:04 AM
> I do not understand why the reconfiguration of the pins as input pull-down lead to this. This should not result in an increase of current usage?
On its own, it should not. Probably some indirect cause due to whatever else you're doing in the code.