NCS 2.3.0 to 2.4.2 KeyError when flashing in VSCode

Hi, 

We are using the nrf9160 on a custom board, currently using NCS v2.3.0. I have updated our project where required in line with the release notes for NCS 2.4.0, and am able to build with no errors, but attempting to flash the device fails with the error as follows:

Traceback (most recent call last):
File "runpy.py", line 193, in _run_module_as_main
File "runpy.py", line 86, in _run_code
File "C:\ncs\toolchains\31f4403e35\opt\bin\Scripts\west.exe\__main__.py", line 7, in <module>
File "C:\ncs\toolchains\31f4403e35\opt\bin\Lib\site-packages\west\app\main.py", line 866, in main
app.run(argv or sys.argv[1:])
File "C:\ncs\toolchains\31f4403e35\opt\bin\Lib\site-packages\west\app\main.py", line 111, in run
self.run_command(argv)
File "C:\ncs\toolchains\31f4403e35\opt\bin\Lib\site-packages\west\app\main.py", line 385, in run_command
self.run_extension(args.command, argv)
File "C:\ncs\toolchains\31f4403e35\opt\bin\Lib\site-packages\west\app\main.py", line 467, in run_extension
self.cmd.run(args, unknown, self.topdir, manifest=self.manifest,
File "C:\ncs\toolchains\31f4403e35\opt\bin\Lib\site-packages\west\commands.py", line 194, in run
self.do_run(args, unknown)
File "C:\ncs\v2.4.2\zephyr\scripts\west_commands\flash.py", line 32, in do_run
do_run_common(self, my_args, runner_args, domains=domains)
File "c:\ncs\v2.4.2\zephyr\scripts/west_commands\run_common.py", line 174, in do_run_common
do_run_common_image(command, user_args, user_runner_args, d.build_dir)
File "c:\ncs\v2.4.2\zephyr\scripts/west_commands\run_common.py", line 250, in do_run_common_image
runner.run(command_name)
File "c:\ncs\v2.4.2\zephyr\scripts/west_commands\runners\core.py", line 611, in run
self.do_run(command, **kwargs)
File "c:\ncs\v2.4.2\zephyr\scripts/west_commands\runners\nrf_common.py", line 398, in do_run
self.program_hex()
File "c:\ncs\v2.4.2\zephyr\scripts/west_commands\runners\nrf_common.py", line 260, in program_hex
self.flush(force=False)
File "c:\ncs\v2.4.2\zephyr\scripts/west_commands\runners\nrf_common.py", line 188, in flush
self.flush_ops(force=force)
File "c:\ncs\v2.4.2\zephyr\scripts/west_commands\runners\nrf_common.py", line 375, in flush_ops
self.do_exec_op(self.ops.popleft(), force)
File "c:\ncs\v2.4.2\zephyr\scripts/west_commands\runners\nrfjprog.py", line 91, in do_exec_op
self.check_call(cmd + ['-f', families[self.family]] + core_opt +
KeyError: 'NRF91'

I tried setting my active toolchain and SDK to 2.3.0 and was able to flash as normal.

Any help would be greatly appreciated!

Parents Reply Children
Related