How to factory reset Nucleo F103RB board? NUCLEO Board F103RB - Error in initializing ST-LINK device. Reason: No device found on target.
Here is what I did -
From CubeMX, I mistakenly change port configuration of port pin PA14 from SYS_JTCK-SWCLK to GPIO_Output.
Apparently this disabled the debug / programming channel of the target micro controller on the board.
Later I reset the port pin to its original function and tried to program the new firmware, but it doesn't work.
I get following error:
"Error in initializing ST-LINK device.
Reason: No device found on target."
Here's the complete console log -
STMicroelectronics ST-LINK GDB server. Version 5.3.2
Copyright (c) 2019, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
Target no device found
Error in initializing ST-LINK device.
I know that the ST-Link is working normally because I was able to update its firmware.
When I keep the reset button pressed while the debugging session is being initiated, it shows the following message "Error in initializing ST-LINK device.
Reason: Target held under reset."
Is there any way to reset the JTAG / SWD channel on the Nucleo board?
