Skip to content

[Bug]: Connect with pre-reset fails for ST-Link probes using pyOCD #701

@TeoMahnic

Description

@TeoMahnic

Description

Connection using the ST-Link probe with the pre-reset method fails in pyOCD because pyOCD attempts post_reset_recovery on a device that has not yet been successfully connected.

Steps to Reproduce

  1. Connect target with on-board ST-Link probe
  2. Select pre-reset connect mode in pyOCD using the command line option: -Oconnect_mode=pre-reset
  3. Run pyocd gdbserver command
  4. Observe error printed to the console

Expected Behavior

pre-reset connect mode works with ST-Link probe.

Additional Information

Current behaviour:

0000499 I Target device: STM32H743ZITx [cbuild_run]
0000522 I Target type is stm32h743zitx [board]
0000534 I Performing connect pre-reset [coresight_target]
0000735 C STLink error (66): Unknown command [__main__]

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpyOCDChange is required in shipped pyOCD variant

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions