cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging of STM32L072CZ

Nallamuthu
Associate II

As I am doing debugging for STM32L072CZ Controller using ST-Link/V2 debugger with Software Keil and AC6. As I am getting No target device found. So suggest me how to solve thr error.

7 REPLIES 7
KnarfB
Principal III

So your debug probe is found, but the target is not. Check the wiring and correct power supply of the target. Try a known-good target like a nucleo board for cross-checking.

Is your code putting the CPU to sleep, and/or disabling the debug pins?

First try with the ST-Link Utility - to take Keil & AC6 out of the equation.

  • If that works - then the problem is with your Keil & AC6 setups;
  • If that doesn't work - then you have a fundamental problem.

When the ST-Link Utility can't connect, it gives suggestions to resolve the situation - follow them.

As I have tried in ST-Link utility, the below image are error are occurred. I have changed lower frequency mode and also normal mode but same error has be repeating.

0690X00000BwipcQAB.jpg

What is your target? is the MCU soldered on a commerical board or a new design? Are you bringing up a first prototype?

Ozone
Lead II

Put the target into system mode via BOOT0 / BOOT1 pins, and use an appropriate tool to try a Flash mass erase.

In former time this used to be the Flash Loader Demonstator, I think the newer Cube Programmer suports the system BL protocoll as well.

ST-Link Utility supports it as well, if I remember correctly.

Its commercial board. No, it is product and some alteration has be done in product. STM32 ST Link Utility, Keil and eclipse.

I required to debug the code inside the controller.