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

Exception when trying to debug code (teensy 4.1) #116

Open
fedesilva opened this issue Mar 15, 2024 · 1 comment
Open

Exception when trying to debug code (teensy 4.1) #116

fedesilva opened this issue Mar 15, 2024 · 1 comment

Comments

@fedesilva
Copy link

fedesilva commented Mar 15, 2024

What kind of issue is this?

(well I noticed this after I filed this issue, it's clion not vscode, and I don't seem to be able to delete the ticket)


Configuration

Operating system:

Mac OS

PlatformIO Version

PlatformIO Core, version 6.1.13

Description of problem

I can't debug code for teensy 4.1

Steps to Reproduce

Using Clion I go to the PlatformIO sidebar, click debug and get an error.

Actual Results

KeyError: Traceback (most recent call last):
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/platformio/__main__.py", line 103, in main
    cli()  # pylint: disable=no-value-for-parameter
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/platformio/cli.py", line 85, in invoke
    return super().invoke(ctx)
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/platformio/debug/cli.py", line 104, in cli
    debug_config = _configure(*configure_args)
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/platformio/debug/cli.py", line 116, in _configure
    debug_config = DebugConfigFactory.new(
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/platformio/debug/config/factory.py", line 44, in new
    return config_cls(platform, project_config, env_name)
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/platformio/debug/config/base.py", line 53, in __init__
    self.server = self._configure_server()
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/platformio/debug/config/base.py", line 185, in _configure_server
    self.platform.get_package_dir(server_package)
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/platformio/platform/_packages.py", line 32, in get_package_dir
    pkg = self.get_package(name)
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/platformio/platform/_packages.py", line 29, in get_package
    return self.pm.get_package(spec or self.get_package_spec(name))
  File "/Users/f/Workshop/Library/miniconda3/lib/python3.9/site-packages/platformio/platform/_packages.py", line 21, in get_package_spec
    owner=self.packages[name].get("owner"),
KeyError: 'tool-jlink'


============================================================

An unexpected error occurred. Further steps:

* Verify that you have the latest version of PlatformIO using
  `python -m pip install -U platformio` command

* Try to find answer in FAQ Troubleshooting section
  https://docs.platformio.org/page/faq/index.html

* Report this problem to the developers
  https://github.com/platformio/platformio-core/issues

============================================================

Expected Results

I can step over the code, or get a dialog saying why not.

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:teensy41]
platform = teensy
board = teensy41
framework = arduino

Source file to reproduce issue:

Any source

Additional info

Clion Build #CL-233.14475.31, built on February 13, 2024

(but got the same with vscode, whatever the version)

@valeros valeros transferred this issue from platformio/platformio-core Mar 15, 2024
@valeros
Copy link
Member

valeros commented Mar 15, 2024

Hi @fedesilva, I'm curios how you plan to debug this board? It doesn't have an on-board debugger and the external probe is also hard to connect (if possible).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants