<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>west flash failed with KeyError: &amp;#39;NRF52&amp;#39; with ncs v2.4.0 on Ubuntu 22.04</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100634/west-flash-failed-with-keyerror-nrf52-with-ncs-v2-4-0-on-ubuntu-22-04</link><description>west flash inja: no work to do. -- west flash: using runner nrfjprog Using board 801036305 -- runners.nrfjprog: Flashing file: /home/henry/ncs/v2.4.0/nrf/samples/minimal_log/build/zephyr/merged.hex Traceback (most recent call last): File &amp;quot;/home/henry</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Aug 2023 05:19:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100634/west-flash-failed-with-keyerror-nrf52-with-ncs-v2-4-0-on-ubuntu-22-04" /><item><title>RE: west flash failed with KeyError: 'NRF52' with ncs v2.4.0 on Ubuntu 22.04</title><link>https://devzone.nordicsemi.com/thread/442865?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 05:19:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:964fe44c-7cdc-4d4e-97c8-aad025ee5da4</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your great support! I can flash successfully after modifying board.cmake as follows. &lt;/p&gt;
&lt;p&gt;board_runner_args(nrfjprog &amp;quot;--softreset&amp;quot;)&lt;br /&gt;board_runner_args(jlink &amp;quot;--device=nRF52832_xxAA&amp;quot; &amp;quot;--speed=4000&amp;quot;)&lt;br /&gt;include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)&lt;br /&gt;include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west flash failed with KeyError: 'NRF52' with ncs v2.4.0 on Ubuntu 22.04</title><link>https://devzone.nordicsemi.com/thread/430277?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 14:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70fdea0d-2070-4f31-a42e-a5c131a69976</guid><dc:creator>Eetu Nevalainen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I just updated SDK to v2.4.0 and I have the same problem with our custom nrf9160 board. Flashing works on SDK 2.3.0 without any issues.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Flashing build to 821010929
/bin/sh -c west flash -d /home/eetnev/git/ncs/v2.4.0/zephyr/samples/hello_world/build --skip-rebuild --dev-id 821010929 --erase

-- west flash: using runner nrfjprog
-- runners.nrfjprog: mass erase requested
-- runners.nrfjprog: Flashing file: /home/eetnev/git/ncs/v2.4.0/zephyr/samples/hello_world/build/zephyr/merged.hex
Traceback (most recent call last):
  File &amp;quot;/home/eetnev/git/ncs/toolchains/1f9b40e71a/usr/local/bin/west&amp;quot;, line 8, in &amp;lt;module&amp;gt;
    sys.exit(main())
  File &amp;quot;/home/eetnev/git/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.8/site-packages/west/app/main.py&amp;quot;, line 866, in main
    app.run(argv or sys.argv[1:])
  File &amp;quot;/home/eetnev/git/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.8/site-packages/west/app/main.py&amp;quot;, line 111, in run
    self.run_command(argv)
  File &amp;quot;/home/eetnev/git/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.8/site-packages/west/app/main.py&amp;quot;, line 385, in run_command
    self.run_extension(args.command, argv)
  File &amp;quot;/home/eetnev/git/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.8/site-packages/west/app/main.py&amp;quot;, line 467, in run_extension
    self.cmd.run(args, unknown, self.topdir, manifest=self.manifest,
  File &amp;quot;/home/eetnev/git/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.8/site-packages/west/commands.py&amp;quot;, line 194, in run
    self.do_run(args, unknown)
  File &amp;quot;/home/eetnev/git/ncs/v2.4.0/zephyr/scripts/west_commands/flash.py&amp;quot;, line 32, in do_run
    do_run_common(self, my_args, runner_args, domains=domains)
  File &amp;quot;/home/eetnev/git/ncs/v2.4.0/zephyr/scripts/west_commands/run_common.py&amp;quot;, line 174, in do_run_common
    do_run_common_image(command, user_args, user_runner_args, d.build_dir)
  File &amp;quot;/home/eetnev/git/ncs/v2.4.0/zephyr/scripts/west_commands/run_common.py&amp;quot;, line 250, in do_run_common_image
    runner.run(command_name)
  File &amp;quot;/home/eetnev/git/ncs/v2.4.0/zephyr/scripts/west_commands/runners/core.py&amp;quot;, line 611, in run
    self.do_run(command, **kwargs)
  File &amp;quot;/home/eetnev/git/ncs/v2.4.0/zephyr/scripts/west_commands/runners/nrf_common.py&amp;quot;, line 398, in do_run
    self.program_hex()
  File &amp;quot;/home/eetnev/git/ncs/v2.4.0/zephyr/scripts/west_commands/runners/nrf_common.py&amp;quot;, line 260, in program_hex
    self.flush(force=False)
  File &amp;quot;/home/eetnev/git/ncs/v2.4.0/zephyr/scripts/west_commands/runners/nrf_common.py&amp;quot;, line 188, in flush
    self.flush_ops(force=force)
  File &amp;quot;/home/eetnev/git/ncs/v2.4.0/zephyr/scripts/west_commands/runners/nrf_common.py&amp;quot;, line 375, in flush_ops
    self.do_exec_op(self.ops.popleft(), force)
  File &amp;quot;/home/eetnev/git/ncs/v2.4.0/zephyr/scripts/west_commands/runners/nrfjprog.py&amp;quot;, line 91, in do_exec_op
    self.check_call(cmd + [&amp;#39;-f&amp;#39;, families[self.family]] + core_opt +
KeyError: &amp;#39;NRF91&amp;#39;

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Flashing nrf9160dk seems to work.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; Flashing build to 960035939
/bin/sh -c west flash -d /home/eetnev/git/ncs/v2.4.0/zephyr/samples/hello_world/build --skip-rebuild --dev-id 960035939 --erase

-- west flash: using runner nrfjprog
-- runners.nrfjprog: mass erase requested
-- runners.nrfjprog: Flashing file: /home/eetnev/git/ncs/v2.4.0/zephyr/samples/hello_world/build/zephyr/merged.hex
Parsing image file.
Verifying programming.
Verified OK.
Applying pin reset.
-- runners.nrfjprog: Board with serial number 960035939 flashed successfully.
 *  Terminal will be reused by tasks, press any key to close it. &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Edit:&lt;/p&gt;
&lt;p&gt;I updated our board.cmake using ncs/v2.4.0/zephyr/boards/arm/nrf9160dk_nrf9160/board.cmake and flashing started to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west flash failed with KeyError: 'NRF52' with ncs v2.4.0 on Ubuntu 22.04</title><link>https://devzone.nordicsemi.com/thread/430233?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 12:28:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34c68808-7cfc-4e70-ba8f-a17d3ed1647e</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like you might have missed some steps in the installation procedure. Are you able to compile any other nRF Connect SDK samples through with either command line or through the Visual Studio Code extension?&lt;/p&gt;
&lt;p&gt;Could you retrace the installation steps either through&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/topic/exercise-1-1/"&gt;https://academy.nordicsemi.com/topic/exercise-1-1/&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/getting_started/assistant.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/getting_started/assistant.html &lt;/a&gt;and make sure that nrfutil and nrf command line tools are properly installed&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west flash failed with KeyError: 'NRF52' with ncs v2.4.0 on Ubuntu 22.04</title><link>https://devzone.nordicsemi.com/thread/430093?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 03:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ffe46ba-aab3-4ebb-8287-7b0fa143852e</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8484.minimal_5F00_log.zip"&gt;devzone.nordicsemi.com/.../8484.minimal_5F00_log.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west flash failed with KeyError: 'NRF52' with ncs v2.4.0 on Ubuntu 22.04</title><link>https://devzone.nordicsemi.com/thread/430092?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 03:36:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6048708-7dac-41c0-8fba-0277326ee8fe</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3301.custom_5F00_nrf52832.zip"&gt;devzone.nordicsemi.com/.../3301.custom_5F00_nrf52832.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>