Skip to main content
Nallamuthu
Associate II
January 27, 2020
Question

Debugging of STM32L072CZ

  • January 27, 2020
  • 7 replies
  • 1384 views

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.

This topic has been closed for replies.

7 replies

KnarfB
Super User
January 27, 2020

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.

Andrew Neil
Super User
January 27, 2020

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.

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.
Nallamuthu
Associate II
January 28, 2020

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

KnarfB
Super User
January 28, 2020

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

Ozone
Principal
January 28, 2020

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.

Nallamuthu
Associate II
January 28, 2020

I required to debug the code inside the controller.