-
Notifications
You must be signed in to change notification settings - Fork 3k
Prevent detect_targets.py tool script from crashing on known targets #6000
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
Conversation
As mut['mcu'] can be "None" on unknown targets, the detect_targets script crashes when one of these boards is connected. This happens when "mbed-cli detect -vv" is ran when a STEVAL-3DP001V1 board is connected. Which does not provide a html file with a target_id, and thus cannot be looked up in the mbedls platform database. http://www.st.com/en/evaluation-tools/steval-3dp001v1.html
User not whitelisted, CI not run. |
@daid I'm not sure I like that solution, since my impression is that all mbed-enabled board should have some sort of html or info on the MSD interface used to identify it. @c1728p9 I'm wondering if this is because the interface is STLINKV2. Is it possible that ST didn't include the files for this particular board in the firmware? As a side note, looks like a fun board! |
Indeed, there is only a txt file, not the htm file on this board, which includes an STLINKV2 on the board itself.
Else I would have contributed the proper id to the board database, but I don't think usb ids are proper stable identifiers for boards (I haven't look if this id changes between the 3 STEVAL-3DP001V1 boards we have) I'm also not entirely sure if this is the correct fix, but this at least prevented the code from crashing, and list the board as incompatible with all default targets. |
Just dropping by to say that our other STEVAL-3DP001V1 boards indeed have other identifiers, and thus adding it to the mbedls list is not an option. The question here remains, should mbedls prevent giving None as ['mcu'] or should mbed-os be able to handle this None (as I did in this pull request) |
@daid I think this is an acceptable solution. The Mbed LS API does not have an |
/morph build |
Odd. /morph build |
/morph build |
Build : SUCCESSBuild number : 1147 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 822 |
Test : SUCCESSBuild number : 953 |
As mut['mcu'] can be "None" on unknown targets, the detect_targets script crashes when one of these boards is connected.
This happens when "mbed-cli detect -vv" is ran when a STEVAL-3DP001V1 board is connected. Which does not provide a html file with a target_id, and thus cannot be looked up in the mbedls platform database.
http://www.st.com/en/evaluation-tools/steval-3dp001v1.html
Notes:
Description
A few sentences describing the overall goals of the pull request's commits.
Status
READY/IN DEVELOPMENT/HOLD
Migrations
If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.
YES | NO
Related PRs
List related PRs against other branches:
Todos
Deploy notes
Notes regarding the deployment of this PR. These should note any required changes in the build environment, tools, compilers and so on.
Steps to test or reproduce
Outline the steps to test or reproduce the PR here.