2025-06-26 5:00 AM
Greetings,
To start with stm32 wireless series i bought STM32WLE5CC and uploaded my custom code of gpio toggeling without initialiazing PA13 and PA14 for serial wire debug. The program runs as it should but when i try to re-flash the controller with ST-Link V 2 the chip is not being recognized.
Can this issue arise due to the failure of initialiazing PA13 and PA14 ? If so then is there any work around to save my chip :).
Note : I have used cube mx for code generation.
Thanks & Regards,
Nimit Vachhani.
2025-06-26 5:08 AM
What board is your chip on?
If you did nothing at all to PA13 and PA14, that should leave them in their default state - which is SWD.
If your code does reconfigure PA13 and/or PA14, then connecting under hardware reset should override that.
Do you have the hardware reset connected from your ST-Link?
Further details:
How to solve connection errors when connecting and programming the STM32 target board.
How to solve debugger connection issues.