STM32F030CC Custom PCB - STLINK V2 Programming Issue
Hello STM32 community
I'm facing an issue with my custom PCB featuring the STM32F030CC microcontroller. I've been using an STLINK V2 with opto-isolation for programming via SWD.
Here's the scenario:
Initial Success: After connecting power and performing the first programming, a simple program controlling a GPIO worked perfectly.
Programming Failure in STM32CubeMX: However, when I tried to program the device again using STM32CubeMX, I encountered the following error: "Target no device found Error in initializing ST-LINK device. Reason: No device found on target." Importantly, I didn't make any changes to the configuration between the initial success and this point.
Reproducible on Another PCB: To rule out the possibility of a single PCB issue, I tried the same procedure on a different custom PCB, and I encountered the same problem.
I don't see any reason why that happens, but it worked once for almost 3 days. Another pcb was working fine for 6 programminga and the last one's gone after just one.
I've already gone through a comprehensive list of troubleshooting steps, including checking connections, firmware updates, different computers, and power supplies. Unfortunately, the issue persists.
Has anyone experienced a similar problem or have any suggestions for further troubleshooting? Your insights and expertise would be greatly appreciated.
Thank you in advance for your help!
Best regards