I cannot connect ST-LINK/V2
I created a new board using STM32L431CBT6. The initial programming of the board was successful. However, once a program was written, I found that it couldn't be modified again. I suspected it might be related to Boot settings, so I tried changing Boot0 to High, NRST to Low, and various other attempts, but ultimately I couldn't access it. I thought it might be because I didn't set Debug to Serial Wire in SYS, but it seems unrelated.
I am using STM32CubeProgrammer as the tool. When I try to access the board using a Chinese-made (purchased on Amazon) ST-LINK/V2, I cannot access it. However, writing was possible on the first attempt with this device.
Simply connecting it, the Serial number becomes corrupted, and it cannot be connected.

Therefore, to check if ST-LINK is properly connected, I change Shared to Enable.

Then, the Serial number is displayed correctly. However, when I try to connect in this state, it says there is no target.

So, when I revert Shared to Disable and attempt to reconnect, the Serial number disappears (returns to the original single-digit value), and an error "UR connection mode is defined with the HWrst reset mode" occurs.

At this point, I decided to check my Nucleo-F401RE. It recognizes it properly and connects without any issues. Boot0 remains Low, and it connects without needing any resets.

So, I considered using the ST-Link part (the longer side) of this board to connect to the STM32L431CBT6 board I made by removing the ST-Link Jumper. In this case, it recognizes it properly, and the device is correctly identified.

In the end, does it mean that the ST-Link/V2 purchased on Amazon is not working properly? The packaging appears to be genuine ST product.




