ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.66k stars 2.97k forks source link

STLINK-V3 (MINIE) support #15424

Open majcher opened 1 year ago

majcher commented 1 year ago

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:

Target(s) affected by this defect ?

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

ARM_GCC

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

1443257e40c97141c975f1c5cd7f4cf308a58b5e

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 commented 1 year ago

cc @ARMmbed/team-st-mcd

jeromecoutant commented 1 year ago

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