Hi!
I can't flash or debug with Jlink Base from vscode with nrf connect extension. Using embedded Jlink in nRF52840 DK or embedded Jlink in EVK-ANNA-B112, I have no problems, I can flash and debug.
With Jlink Base I receive the following error:
-- west flash: using runner pyocd -- runners.pyocd: Flashing file: C:\Users\pedro.castro\Pedro\Git\FW_BLE_B112_SPP\Peripheral\build\zephyr\merged.hex 0002304:CRITICAL:__main__:Target type 'nrf52832' not recognized. Use 'pyocd list --targets' to see currently available target types. See <https://github.com/mbedmicro/pyOCD/blob/master/docs/target_support.md> for how to install additional target support. Traceback (most recent call last): File "C:\ncs\toolchains\v2.0.2\opt\bin\Lib\site-packages\pyocd\board\board.py", line 61, in __init__ self.target = TARGET[self._target_type](session) KeyError: 'nrf52832' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\ncs\toolchains\v2.0.2\opt\bin\Lib\site-packages\pyocd\__main__.py", line 401, in run self._COMMANDS[self._args.cmd](self) File "C:\ncs\toolchains\v2.0.2\opt\bin\Lib\site-packages\pyocd\__main__.py", line 556, in do_flash session = ConnectHelper.session_with_chosen_probe( File "C:\ncs\toolchains\v2.0.2\opt\bin\Lib\site-packages\pyocd\core\helpers.py", line 242, in session_with_chosen_probe return Session(probe, auto_open=auto_open, options=options, **kwargs) File "C:\ncs\toolchains\v2.0.2\opt\bin\Lib\site-packages\pyocd\core\session.py", line 189, in __init__ or Board(self, self.options.get('target_override')) File "C:\ncs\toolchains\v2.0.2\opt\bin\Lib\site-packages\pyocd\board\board.py", line 63, in __init__ six.raise_from(exceptions.TargetSupportError( File "<string>", line 3, in raise_from pyocd.core.exceptions.TargetSupportError: Target type 'nrf52832' not recognized. Use 'pyocd list --targets' to see currently available target types. See <https://github.com/mbedmicro/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 0x10000 -t nrf52832 -u 50128277 -f 400000 'C:\Users\pedro.castro\Pedro\Git\FW_BLE_B112_SPP\Peripheral\build\zephyr\merged.hex' * The terminal process terminated with exit code: 1. * Terminal will be reused by tasks, press any key to close it.
If I follow this instructions in another PC, with a just restored Windows installation, same problem occurs.
I've tried pyocd list --targets
from vscode console and nrf52832 appears as supported. pyocd load .\merged.hex --target nrf52832
also works, but the flashing process is extremely slow.
Flashing stopped working after uninstalling and re-installing nRF Connect SDK v2.0.2 with Nordic Toolchain Manager v1.2.5. I did it because debugging wasn't working with Jlink Base. Now neither debugging or flashing work.
I've attached the support information.
Thanks and kind regards!
Pedro.