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

IAR export will not fail in the absence of a CMSIS pack #3355

Merged
merged 2 commits into from
Dec 9, 2016

Conversation

sarahmarshy
Copy link
Contributor

Currently, IAR requires that device has a CMSIS pack to find the debug interface. With that assumption, if a debug interface cannot be found, it defaults to CMSIS-DAP. This change will mean that the default CMSIS-DAP is also used when there is not CMSIS pack at all.

Fixes #3286

@theotherjimmy

@bridadan
Copy link
Contributor

bridadan commented Dec 2, 2016

/morph export-build

@mbed-bot
Copy link

mbed-bot commented Dec 2, 2016

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph export-build

Output

mbed Build Number: 43

All exports and builds passed!


try:
debugger = DeviceCMSIS(self.target).debug.replace('-','').upper()
except:
Copy link
Contributor

Choose a reason for hiding this comment

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

do we want to catch any exception or should we a specific that deviceCMSIS documents it can throw?

Copy link
Contributor

Choose a reason for hiding this comment

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

bump

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perhaps. I'd kind of rather that this bit of code never fails. You should always get a debug interface, at least CMSIS-DAP. But I could catch the existing thrown exception, TargetNotSupported.

https://github.com/ARMmbed/mbed-os/blob/master/tools/export/cmsis/__init__.py#L38

Copy link
Contributor

Choose a reason for hiding this comment

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

Even if a user presses C-c?

@0xc0170 0xc0170 removed the needs: CI label Dec 2, 2016
@sarahmarshy
Copy link
Contributor Author

/morph export-build

@sarahmarshy
Copy link
Contributor Author

@theotherjimmy changed the exception catching

@mbed-bot
Copy link

mbed-bot commented Dec 8, 2016

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph export-build

Output

mbed Build Number: 46

All exports and builds passed!

@theotherjimmy
Copy link
Contributor

Cool. LGTM

@0xc0170 0xc0170 merged commit 8f138fc into ARMmbed:master Dec 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants