Skip to content

New Discovery boards use a stlink-v2-1 and need different openocd config file #263

Open

Description

@Phylex

Hi in the "Verify Installation" section of the book openocd is started with the interface/stlink.cfg or the /stlink-v2.cfg new boards use a stlink-v2-1 so the correct file is the interface/stlink-v2-1.cfg then it starts without a problem otherwise it errors with
Open On-Chip Debugger 0.10.0 Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'. adapter speed: 1000 kHz adapter_nsrst_delay: 100 Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD none separate Info : Unable to match requested speed 1000 kHz, using 950 kHz Info : Unable to match requested speed 1000 kHz, using 950 kHz Info : clock speed 950 kHz Error: open failed in procedure 'init' in procedure 'ocd_bouncer'

Activity

  1. adamgreig commented on Sep 5, 2020

    @adamgreig
    Member

    Thanks for the report! What version of openocd are you using? In the latest version, there's no stlink-v2.cfg or stlink-v2-1.cfg, and all STlinks use just stlink.cfg instead. However, there hasn't been a release of openocd in a long time, so many users are still on old versions where those other files are required.

    Probably the complete solution here is that we'll stop suggesting openocd and suggest probe-rs tools instead, which don't have this sort of issue.

  2. Phylex commented on Sep 16, 2020

    @Phylex
    Author

    The version is 0.10.0 and is the current packaged version for void-linux.

  3. bitdivine commented on Sep 28, 2020

    @bitdivine

    Same symptoms, solution and openocd version here. 0.10.0 is also the default version of openocd for Ububtu 20.04. I note that for programming Blue Pills I also use stlink-v2-1.cfg

  4. julianoes commented on Oct 17, 2020

    @julianoes

    This issue seems to have been fixed by #268, however, it would be good to add to the troubleshooting section to try both, if one doesn't work. The F3 I bought seemed to still want v2, not v2-1.

  5. added a commit that references this issue on Oct 26, 2020
  6. jeffwhite-619 commented on Nov 21, 2020

    @jeffwhite-619

    I have recently ordered a Discovery board for use in this tutorial and had to change the filename to stlink-v2-1.cfg for it to work. I'm not sure if I received an older board, or if this is the newer board, but it does appear that users like myself may be still be acquiring boards that need this change to proceed through the tutorial.

  7. added a commit that references this issue on Feb 17, 2021
  8. added a commit that references this issue on Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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