Skip to content

hw/scripts: Add adapter selection via syscfg.yml #3477

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Slawek-skrawek
Copy link
Contributor

Added option for selecting USB serial of a debug probe via syscfg.vals in targets syscfg.yml file.

This was achieved by addition of following definitions to hw/scripts/syscfg.yml file:

  • STLINK_SN
  • JLINK_SN
  • CMSIS_DAP_SN and their usage in scripts.

This removes the need of manual choosing target device everytime load is called, by having serial number value in targets syscfg.yml file.
This value will be used, when environment variable is missing.

Added option for selecting USB serial of a debug probe
via syscfg.vals in targets syscfg.yml file.

This was achieved by addition of following definitions
to hw/scripts/syscfg.yml file:
- STLINK_SN
- JLINK_SN
- CMSIS_DAP_SN
and their usage in scripts.

This removes the need of manual choosing target device
everytime load is called, by having serial number value
in targets syscfg.yml file.
This value will be used, when environment variable
is missing.
@@ -90,3 +90,15 @@ syscfg.defs:
It can be 'nordicDfu' to upload binary using Nordic SDK DFU
bootloader protocol.
value:
STLINK_SN:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this could be common syscfg, and not per downloader
eg MYNEWT_DOWNLOADER_SN ?

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

Successfully merging this pull request may close these issues.

2 participants