[mbedmicro/pyOCD] Auto-detection of STLink targets (#631)

28 views
Skip to first unread message

Chris Reed

unread,
Apr 25, 2019, 7:46:43 PM4/25/19
to mbedmicro/pyOCD, Subscribed

This brings in support for auto-detection of the target associated with on-board STLinkV2-1 probes, so it works just as transparently as with DAPLink. Also brought in the list of ST board IDs from mbed-os-tools.


You can view, comment on, or merge this pull request online at:

  https://github.com/mbedmicro/pyOCD/pull/631

Commit Summary

  • MbedBoard accepts the board ID as a constructor parameter.
  • Auto detection of associated board for STLink.
  • Added STM32 board IDs from mbed-os-tools platform database.

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Chris Reed

unread,
Apr 25, 2019, 7:46:55 PM4/25/19
to mbedmicro/pyOCD, Subscribed

/morph test

Jerome Coutant

unread,
Apr 26, 2019, 4:26:36 AM4/26/19
to mbedmicro/pyOCD, Subscribed

Hi
It seems that this re-implements mbedls ?
Can we imagine that pyOCD reuse mbedls board id table ?

Chris Reed

unread,
Apr 26, 2019, 1:06:49 PM4/26/19
to mbedmicro/pyOCD, Subscribed

Merged #631 into master.

Chris Reed

unread,
Apr 26, 2019, 1:12:30 PM4/26/19
to mbedmicro/pyOCD, Subscribed

Yes, it uses a highly stripped-down version of the mbed-ls (aka mbed-os-tools) code. The main reason for not reusing the original code was because it does a lot of other checks, and supports other probes. By removing these features we can make it simpler and faster.

Unfortunately we can't reuse the mbed-ls platform table because it doesn't contain the target type or test binary name that pyOCD needs. However, we're looking at adding this information to the Mbed platforms database, so pyOCD (and mbed-ls) can download it at runtime.

Chris Reed

unread,
Apr 26, 2019, 1:14:26 PM4/26/19
to mbedmicro/pyOCD, Subscribed

Fyi, the only CI tests that failed were known issues with STM32 devices, like #579.

Reply all
Reply to author
Forward
0 new messages