Skip to main content
Nimit Vachhani
Associate III
Jun 26, 2025 12:00 PM UTC
Solved

Programmed STM32WLE5CC

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.

This topic has been closed for replies.
Andrew Neil
Andrew NeilBest answer
Super User
Jun 26, 2025 12:08 PM UTC

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?

Is it a genuine ST-Link?

 

Further details:

How to solve connection errors when connecting and programming the STM32 target board.

How to solve debugger connection issues.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.

3 replies

Andrew Neil
Andrew NeilBest answer
Super User
Jun 26, 2025 12:08 PM UTC

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?

Is it a genuine ST-Link?

 

Further details:

How to solve connection errors when connecting and programming the STM32 target board.

How to solve debugger connection issues.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Nimit Vachhani
Associate III
Jun 27, 2025 3:18 AM UTC

Greetings,

I have clone STlink. Due to this fear i am trying with STM32F429I-Disc1 for programming. Please give me some time i am posting my IOC file here for better info.