Skip to main content
Nimit Vachhani
Associate III
June 26, 2025
Solved

Programmed STM32WLE5CC

  • June 26, 2025
  • 1 reply
  • 353 views

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.

Best answer by Andrew Neil

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.

1 reply

Andrew Neil
Andrew NeilBest answer
Super User
June 26, 2025

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
June 27, 2025

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.