Skip to content

mbed compile : enable flash option with dual core targets #964

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

Merged
merged 1 commit into from
Jun 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions mbed/mbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -2785,6 +2785,10 @@ def compile_(toolchain=None, target=None, macro=False, profile=False,
error("The '-f/--flash' option requires that the 'mbed-greentea' python module is installed.\nYou can install mbed-greentea by running \"%s -m pip install mbed-greentea\"." % python_cmd, 1)

connected = False
# Convert Dual Core target name to mbedls target name
if target.upper().endswith('_CM4') or target.upper().endswith('_CM7'):
target = target[:-4]
action('Target to detect: %s' % target)
targets = program.get_detected_targets()
if targets:
for _target in targets:
Expand Down