diff --git a/apps/microtvm/zephyr/template_project/boards.json b/apps/microtvm/zephyr/template_project/boards.json index bdfa51109ff7..aabed3322150 100644 --- a/apps/microtvm/zephyr/template_project/boards.json +++ b/apps/microtvm/zephyr/template_project/boards.json @@ -1,4 +1,10 @@ { + "mimxrt1050_evk": { + "board": "mimxrt1050_evk", + "model": "imxrt10xx", + "is_qemu": false, + "fpu": true + }, "mps2_an521": { "board": "mps2_an521", "model": "mps2_an521", diff --git a/apps/microtvm/zephyr/template_project/microtvm_api_server.py b/apps/microtvm/zephyr/template_project/microtvm_api_server.py index ed275e610912..f700b5774c72 100644 --- a/apps/microtvm/zephyr/template_project/microtvm_api_server.py +++ b/apps/microtvm/zephyr/template_project/microtvm_api_server.py @@ -162,6 +162,7 @@ def _get_device_args(options): "nucleo_l4r5zi": {"idVendor": 0x0483, "idProduct": 0x374B}, "nucleo_f746zg": {"idVendor": 0x0483, "idProduct": 0x374B}, "stm32f746g_disco": {"idVendor": 0x0483, "idProduct": 0x374B}, + "mimxrt1050_evk": {"idVendor": 0x1366, "idProduct": 0x0105}, } @@ -545,6 +546,10 @@ def _find_openocd_serial_port(cls, options): return ports[0].device + @classmethod + def _find_jlink_serial_port(cls, options): + return cls._find_openocd_serial_port(options) + @classmethod def _find_serial_port(cls, options): flash_runner = _get_flash_runner() @@ -555,9 +560,10 @@ def _find_serial_port(cls, options): if flash_runner == "openocd": return cls._find_openocd_serial_port(options) - raise FlashRunnerNotSupported( - f"Don't know how to deduce serial port for flash runner {flash_runner}" - ) + if flash_runner == "jlink": + return cls._find_jlink_serial_port(options) + + raise RuntimeError(f"Don't know how to deduce serial port for flash runner {flash_runner}") def __init__(self, options): self._options = options diff --git a/python/tvm/target/target.py b/python/tvm/target/target.py index 4ce888170134..4e5826f5b2a2 100644 --- a/python/tvm/target/target.py +++ b/python/tvm/target/target.py @@ -286,7 +286,7 @@ def intel_graphics(model="unknown", options=None): "atsamd51": ["-mcpu=cortex-m4"], "cxd5602gg": ["-mcpu=cortex-m4"], "esp32": [], - "imxrt1060": ["-mcpu=cortex-m7"], + "imxrt10xx": ["-mcpu=cortex-m7"], "mps2_an521": ["-mcpu=cortex-m33"], "nrf52840": ["-mcpu=cortex-m4"], "nrf5340dk": ["-mcpu=cortex-m33"],