Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STLINK-V3 (MINIE) support #15424

Open
majcher opened this issue May 24, 2023 · 2 comments
Open

STLINK-V3 (MINIE) support #15424

majcher opened this issue May 24, 2023 · 2 comments

Comments

@majcher
Copy link
Contributor

majcher commented May 24, 2023

Description of defect

I'm trying to use STLINK-V3 (MINIE) connected to a custom targets / boards (based mbed supported MCUs: STM32H743ZI and STM32G0B1) with Mbed CLI v1, like mbed compile / test, mbedls, etc, but mbedls doesn't recognize STLINK V3.

I tried using STLINK V2.1 (cut from Nucleo64 board), which is recognized by mbedls with a code of 0799 (not sure what this code is for?) - it works with STM32G0B1CET MCU, when I manually map 0799 to my target, but it doesn't work with STM32H743ZI at all.

I'm looking for some hints on how to get:

  • STLINK V3 (MINIE) working with Mbed CLI, like mbedls, mbed compile, etc
    • ideally for both H7 and G0B1
  • STLINKL V2.1 working with Mbed CLI for H7 if it's possible
  • is it possible to get some proper MCU code instead of 0799, which I guess is some default for Nucleo's STLINK V2.1

Target(s) affected by this defect ?

  • STM32H743ZI
  • STM32G0B1CET
  • STLINK V3 (MINIE from ST) and V2.1 (cut from Nucleo 64 board)

Toolchain(s) (name and version) displaying this defect ?

ARM_GCC

What version of Mbed-os are you using (tag or sha) ?

1443257

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbedls, mbed compile, mbed test, mbedhtrun, etc.

How is this defect reproduced ?

Connect STLINK V3 to a PC and get an entry in mbedls in general.
(Connect STLINK V3 MINIE to probably any Nucleo board, like H743ZI or G0B1RE)

@0xc0170
Copy link
Contributor

0xc0170 commented May 25, 2023

cc @ARMmbed/team-st-mcd

@jeromecoutant
Copy link
Collaborator

Hi
The mbed-Id is associated to a board, so to a single target. When cutting a ST-Link/V2-1, the ST-Link part keeps the mbed-Id of the initial board/target.
Mbed-Id 0799 means “ST unknown board”.

mbedls has a mock feature: https://github.com/ARMmbed/mbed-os-tools/blob/master/packages/mbed-ls/README.md#mocking-renaming-platforms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants