Skip to content

Commit e385192

Browse files
authored
Merge pull request #964 from jeromecoutant/PR_DUAL
mbed compile : enable flash option with dual core targets
2 parents e09cb2c + 0b11b60 commit e385192

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mbed/mbed.py

+4
Original file line numberDiff line numberDiff line change
@@ -2785,6 +2785,10 @@ def compile_(toolchain=None, target=None, macro=False, profile=False,
27852785
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)
27862786

27872787
connected = False
2788+
# Convert Dual Core target name to mbedls target name
2789+
if target.upper().endswith('_CM4') or target.upper().endswith('_CM7'):
2790+
target = target[:-4]
2791+
action('Target to detect: %s' % target)
27882792
targets = program.get_detected_targets()
27892793
if targets:
27902794
for _target in targets:

0 commit comments

Comments
 (0)