Cannot debug STM32H7

Hi experts,

my company is considering transitioning from uVision to Arm Development Studio.
I'm currently evaluating this using the 30 day trial by recreating our current setup.

I'm now trying to download and debug code on the MCU using the built-in CMSIS-DAP and an ST-LINK.
But when trying to debug, the process just fails without any apparent error after the autodetection. No error is present in the main log.

I originally noticed the behavior with a custom board using an STM32H745IIK6 and an ST-LINK V2 but have since than verified the issue is also present with the same setup and an ST-LINK V3, a second custom board using an STM32H745IIT6 and both ST-LINK V2 and V3 and the STM32H747I-DISCO (STM32H747XI6H) board using the internal ST-LINK V3.

The PCE Log looks okay but includes a warning and an error:

[19/05/21 10:57:12] WARNING - Multi-drop SWD is not supported, a single DAP on the scanchain has been assumed.
[19/05/21 10:57:13] Failed to read registers to identify component: Failed to read 16 bytes from address 0xE00F0FF0 on CSMEMAP_2

When I try "Target Configuration", the autodetect fails with an error

But that isn't helping much either... The PCE is showing the same output as it does when I try to debug.

At leats in this case, the main log includes a callstack:

!ENTRY com.arm.debug.cmsis 4 0 2021-05-19 11:03:42.538
!MESSAGE Failed to automatically detect what devices are present
com.arm.pce.exceptions.DSDetectException: Failed to automatically detect what devices are present
	at com.arm.debug.cmsis.launch.LaunchDelegate.autodetectWrapper(
	at com.arm.debug.cmsis.launch.LaunchDelegate.setupConfigFiles(
	at com.arm.debug.cmsis.launch.CMSISLaunchTab$3.widgetSelected(
	at org.eclipse.swt.widgets.TypedListener.handleEvent(
	at org.eclipse.swt.widgets.EventTable.sendEvent(
	at org.eclipse.swt.widgets.Display.sendEvent(
	at org.eclipse.swt.widgets.Widget.sendEvent(
	at org.eclipse.swt.widgets.Display.runDeferredEvents(
	at org.eclipse.swt.widgets.Display.readAndDispatch(
	at org.eclipse.jface.window.Window.runEventLoop(
	at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialog(
	at com.arm.debug.launcher.DebugConfigurationLauncher.lambda$0(
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(
	at org.eclipse.swt.widgets.Display.runAsyncMessages(
	at org.eclipse.swt.widgets.Display.readAndDispatch(
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
	at org.eclipse.ui.internal.Workbench.lambda$3(
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.base/java.lang.reflect.Method.invoke(
	at org.eclipse.equinox.launcher.Main.invokeFramework(
	at org.eclipse.equinox.launcher.Main.basicRun(

What am I doing wrong? At least accoridng to the PCE Log everything relevant is detected and working correctly.

Debugging using the same setup works without issues in Keil's uVision.

Thanks in advance!

Parents Reply Children
No data