Skip to content

Cannot connect to STM32G431 #172

@bugadani

Description

@bugadani

The debugprobe can connect to most devices I have, except for the STM32G431. I can use other probes (original and clone j-links) to connect to the same target, using the same host software (namely, probe-rs, but that shouldn't matter much).

The host software issues a line reset, followed by a JTAG -> SWD switch sequence, followed by another line reset, 3 idle bits, and a DPIDR read. I have made the following logic analyzer captures (only for the DPIDR read to fit the screenshots) to illustrate my problem:

STM32G4 with debugprobe, notice the missing ACK bits:

Image

STM32G4 with J-Link (in CMSIS-DAP configuration, with WinUSB driver) - note that SWDIO starts high after line reset, but clock polarity is the same:

Image

STM32G4 with a clone j-link, notice the seemingly flipped clock polarity (although data changes just before SWCLK rising edge):

Image

STM32F0 with debugprobe:

Image

While this issue looks to be STM32G431 specific, I wonder if the debugprobe firmware could be adjusted for better compatibility, e.g. by delaying the clock output just slightly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions