STM32CubeIDE mit blackmagic Debug Probe konfigurieren

OP #7243891
Lesenswert?

Folgender Aufbau:
macOS (BigSur)
ST-LinkV2 USB Dongle mit blackmagic programmiert
(lsusb: Bus 020 Device 022: ID 1d50:6018 OpenMoko, Inc. Black Magic 
Debug Probe (Application)
STM32CubeIDE 1.10.1

Ich kann doch in der Debug-Konfiguration OpenOCD angeben. Oder konnte 
nicht sogar die BMP selbst server sein?
OP #7243925
Lesenswert?

pegel schrieb:
> https://github.com/mike-pittelko/BlackMagic-STM32CubeIDE
Danke. Das half ein Stück weiter. Lediglich beim letzten Abschnitt auf 
der Seite:


#IMPORTANT - TO START DEBUGGING SESSION

To start the debugging session of a arm binary, you must select "Run" -> 
"Debug Configurations....", select the configuraton you just created, 
then use the "Debug" button on that page. Once you have done this once, 
you can use the "Debug History" menu to start it again.#

klappt es bei mir irgendwie nicht. "use the Debug button on that page" 
finde ich nicht. Genauer gesagt, der Debug button u.r. ist nicht 
aktiviert.


Korrektur: komme weiter. Mußte noch das application binary, das zu der 
Konfiguration gehört, eintragen.
OP #7243951
Lesenswert?

pegel schrieb:
> Ich wandle gerade ein Bluepill zu BMP und teste.
> Vermutlich wird ein Anderer eine schnellere Antwort haben.

Danke für den Einsatz. Ich komme ein Stück weiter und bekomme vom 
backend:
1
Error in final launch sequence:
2

3
Failed to execute MI command:
4
 monitor tpwr enable
5
Error message from debugger back end:
6
Target does not support this command.
7
Failed to execute MI command:
8
 monitor tpwr enable
9
Error message from debugger back end:
10
Target does not support this command.
11
Failed to execute MI command:
12
 monitor tpwr enable
13
Error message from debugger back end:
14
Target does not support this command.
15
Target does not support this command.

Ist mein bmp jetzt vielleicht zu alt?
Eher nicht. Die github Seite ist 3 Jahre alt.
OP #7244567
Lesenswert?

pegel schrieb:
> Funktioniert das?
>
> Resume bitte testen.

Ja. Mit Resume. Es war so, daß nach dem Continue |> der nächste Stop in 
main(), erstes Statement (HAL_Init()) war. Da war kein Breakpoint 
eingestellt, aber der Zug hielt da.

Jetzt stoppt er nicht mehr im Reset_Handler, sondern direkt in main.
Es geht aber auch ohne das "break main", also Resume angehakt allein 
reicht.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren