Skip to content

Flashing fails if debug interface does not have reset signal #1842

@afeinman-snap

Description

@afeinman-snap

The change in v0.40,0 introduced in a396354

# Reset the target after programming unless --no-reset was specified.
if not self._args.no_reset:
session.target.reset(Target.ResetType.NSRST)

breaks flashing of devices that do not support hardware reset. It uses n_srst reset unconditionally, which fails on 3-wire setups (SWD/SWCLK/GND), where a software reset (default) should be used.

I propose to either:

  • use a software reset which is a default for reset command
    or better yet
  • add reset type option to the load command

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