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

Invalid mimxrt1160_cm7 target type #1411

Closed
flit opened this issue Jun 8, 2022 Discussed in #1380 · 0 comments · Fixed by #1429
Closed

Invalid mimxrt1160_cm7 target type #1411

flit opened this issue Jun 8, 2022 Discussed in #1380 · 0 comments · Fixed by #1429

Comments

@flit
Copy link
Member

flit commented Jun 8, 2022

The mimxrt1160_cm7 target type referenced by the MIMXRT1160-EVK on-board DAPLink firmware (board ID 0246) doesn't actually exist.

Discussed in #1380

Originally posted by Gokuls7 May 3, 2022
I tried to check the flashing procedure for mimxrt1160evk using west tool with zephyr. With JLink I could able to flash the blinky progam. But while selecting PyOCD as a runner I could not able to find the mimxrt1160evk device and while flashing, I face the below error,

"$ west flash -r pyocd
-- west flash: rebuilding
ninja: no work to do.
-- west flash: using runner pyocd
-- runners.pyocd: Flashing file: /home/gokul/zephyrproject/zephyr/build/zephyr/zephyr.hex
Waiting for a debug probe to be connected...
0023806 C Target type mimxrt1160_cm7 not recognized. Use 'pyocd list --targets' to see currently available target types. See <https://github.com/pyocd/pyOCD/blob/master/docs/target_support.md> for how to install additional target support. [__main__]
Traceback (most recent call last):
  File "/home/gokul/.local/lib/python3.8/site-packages/pyocd/board/board.py", line 100, in __init__
    self.target = TARGET[self._target_type](session)
KeyError: 'mimxrt1160_cm7'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/gokul/.local/lib/python3.8/site-packages/pyocd/__main__.py", line 161, in run
    status = cmd.invoke()
  File "/home/gokul/.local/lib/python3.8/site-packages/pyocd/subcommands/load_cmd.py", line 81, in invoke
    session = ConnectHelper.session_with_chosen_probe(
  File "/home/gokul/.local/lib/python3.8/site-packages/pyocd/core/helpers.py", line 263, in session_with_chosen_probe
    return Session(probe, auto_open=auto_open, options=options, **kwargs)
  File "/home/gokul/.local/lib/python3.8/site-packages/pyocd/core/session.py", line 213, in __init__
    self._board = probe.create_associated_board() or Board(self)
  File "/home/gokul/.local/lib/python3.8/site-packages/pyocd/probe/cmsis_dap_probe.py", line 174, in create_associated_board
    return MbedBoard(self.session, board_id=self.board_id)
  File "/home/gokul/.local/lib/python3.8/site-packages/pyocd/board/mbed_board.py", line 67, in __init__
    super(MbedBoard, self).__init__(session, target)
  File "/home/gokul/.local/lib/python3.8/site-packages/pyocd/board/board.py", line 102, in __init__
    raise exceptions.TargetSupportError(
pyocd.core.exceptions.TargetSupportError: Target type mimxrt1160_cm7 not recognized. Use 'pyocd list --targets' to see currently available target types. See <https://github.com/pyocd/pyOCD/blob/master/docs/target_support.md> for how to install additional target support.
FATAL ERROR: command exited with status 1: pyocd flash -e sector -a 0x30000000 -t mimxrt1160_cm7 /home/gokul/zephyrproject/zephyr/build/zephyr/zephyr.hex

Kindly can you provide support for mimxrt1160evk or suggest the procedure to add support for mimxrt1160evk.

@flit flit changed the title PyOCD support for MIMXRT1160evk Invalid mimxrt1160_cm7 target type Jun 8, 2022
@flit flit closed this as completed in #1429 Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant