<?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>nrf52840 dongle flashing via Segger J-link and VSCode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103206/nrf52840-dongle-flashing-via-segger-j-link-and-vscode</link><description>HW: 
 
 J-link standard 
 nRF52840 Dongle 
 
 SW Support Info: 
 
 I can successfully program the dongle using nRFConnect. However, when I try to program with J-Link via VSCode, I get the following error: 
 
 
 I then run west flash --recover and I can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Dec 2023 08:27:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103206/nrf52840-dongle-flashing-via-segger-j-link-and-vscode" /><item><title>RE: nrf52840 dongle flashing via Segger J-link and VSCode</title><link>https://devzone.nordicsemi.com/thread/460734?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 08:27:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cce7ea37-ba02-4ef5-8291-6325bd0cb485</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;The nRF52840 Dongle has the nRF5 Bootloader loaded by default.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.1/zephyr/boards/arm/nrf52840dongle_nrf52840/doc/index.html#option-2-using-mcuboot-in-serial-recovery-mode"&gt;nRF52840 Dongle docs&lt;/a&gt; for information on how to flash the Dongle.&lt;/p&gt;
&lt;p&gt;If you want to add both NSIB (CONFIG_SECURE_BOOT) and MCUboot to the dongle, you must program it using an external debugger.&lt;/p&gt;
&lt;p&gt;EDIT added: In that case, you must also create custom board files for the non- nRF5 bootloader dongle, as the standard dongle boardfiles assumes nRF5 Bootloader&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 dongle flashing via Segger J-link and VSCode</title><link>https://devzone.nordicsemi.com/thread/460694?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 05:46:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34065cb7-27ac-4545-8691-fd864a810413</guid><dc:creator>parksj10</dc:creator><description>&lt;p&gt;Weird, never got a notification of your message &lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;... Anyways my &lt;a href="https://github.com/parksj10/nrfdongle_build_error/tree/main"&gt;example repo in the above post&amp;nbsp;&lt;/a&gt;is generate from the &lt;a href="https://github.com/nrfconnect/ncs-example-application"&gt;nrf example application repo&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 dongle flashing via Segger J-link and VSCode</title><link>https://devzone.nordicsemi.com/thread/459940?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 13:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc3a19d6-4726-49f1-9c02-3777571c8262</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="parksj10"]I pulled down the nrf connect template repo:[/quote]
&lt;p&gt;Can you link to the repo?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 dongle flashing via Segger J-link and VSCode</title><link>https://devzone.nordicsemi.com/thread/459585?ContentTypeID=1</link><pubDate>Sat, 09 Dec 2023 06:23:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d172a035-6f0b-4a97-837c-a68843b3cc40</guid><dc:creator>parksj10</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;, I pulled down the nrf connect template repo:&lt;/p&gt;
&lt;p&gt;Note I redacted main.c to the following to avoid build errors with other boards:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (c) 2021 Nordic Semiconductor ASA
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/drivers/sensor.h&amp;gt;
#include &amp;lt;app_version.h&amp;gt;

#include &amp;lt;zephyr/logging/log.h&amp;gt;
LOG_MODULE_REGISTER(main, CONFIG_APP_LOG_LEVEL);

int main(void)
{
	printk(&amp;quot;Zephyr Example Application %s\n&amp;quot;, APP_VERSION_STRING);

	while (1)
	{

		k_sleep(K_MSEC(1000));
	}

	return 0;
}
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;It builds fine when I run&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf52840dk_nrf52840 app --pristine&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;it also builds fine when&amp;nbsp;I add the following configs to &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;prj.conf:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_SECURE_BOOT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, when use the following command to build:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf52840dongle_nrf52840 app --pristine&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I get this error output:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;╰─ west build -b nrf52840dongle_nrf52840 app --pristine                                                               ─╯
-- west build: making build dir /Users/josh/Code/hw/scratch/ncs-example-application/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/josh/Code/hw/scratch/ncs-example-application/app
-- CMake version: 3.27.3
-- Using NCS Toolchain 2.5.20231017.141038581733 for building. (/opt/nordic/ncs/toolchains/20d68df7e5/cmake)
-- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/bin/python3 (found suitable version &amp;quot;3.9.6&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /Users/josh/Library/Caches/zephyr
-- Zephyr version: 3.4.99 (/Users/josh/Code/hw/scratch/ncs-example-application/zephyr)
-- Found west (found suitable version &amp;quot;1.1.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: nrf52840dongle_nrf52840
-- Found host-tools: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/20d68df7e5/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts
-- Generated zephyr.dts: /Users/josh/Code/hw/scratch/ncs-example-application/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/josh/Code/hw/scratch/ncs-example-application/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/josh/Code/hw/scratch/ncs-example-application/build/zephyr/dts.cmake
Parsing /Users/josh/Code/hw/scratch/ncs-example-application/app/Kconfig
Loaded configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/app/prj.conf&amp;#39;
Configuration saved to &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/build/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/subsys/usb/device/CMakeLists.txt:22 (message):
  CONFIG_USB_DEVICE_VID has default value 0x2FE3.

  This value is only for testing and MUST be configured for USB products.


CMake Warning at /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
  CONFIG_USB_DEVICE_PID has default value 0x100.

  This value is only for testing and MUST be configured for USB products.



=== child image b0 -  begin ===
loading initial cache file /Users/josh/Code/hw/scratch/ncs-example-application/build/b0/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/josh/Code/hw/scratch/ncs-example-application/nrf/samples/bootloader
-- CMake version: 3.27.3
-- Using NCS Toolchain 2.5.20231017.141038581733 for building. (/opt/nordic/ncs/toolchains/20d68df7e5/cmake)
-- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/bin/python3 (found suitable version &amp;quot;3.9.6&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /Users/josh/Library/Caches/zephyr
-- Zephyr version: 3.4.99 (/Users/josh/Code/hw/scratch/ncs-example-application/zephyr)
-- Found west (found suitable version &amp;quot;1.1.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: nrf52840dongle_nrf52840
-- Found host-tools: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/20d68df7e5/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts
-- Generated zephyr.dts: /Users/josh/Code/hw/scratch/ncs-example-application/build/b0/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/josh/Code/hw/scratch/ncs-example-application/build/b0/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/josh/Code/hw/scratch/ncs-example-application/build/b0/zephyr/dts.cmake

warning: HW_STACK_PROTECTION (defined at arch/Kconfig:264) was assigned the value &amp;#39;y&amp;#39; but got the
value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: ARCH_HAS_STACK_PROTECTION (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_HW_STACK_PROTECTION and/or look up
HW_STACK_PROTECTION in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/Kconfig
Loaded configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/samples/bootloader/prj.conf&amp;#39;
Merged configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/build/b0/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/build/b0/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/build/b0/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/subsys/usb/device/CMakeLists.txt:22 (message):
  CONFIG_USB_DEVICE_VID has default value 0x2FE3.

  This value is only for testing and MUST be configured for USB products.


CMake Warning at /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
  CONFIG_USB_DEVICE_PID has default value 0x100.

  This value is only for testing and MUST be configured for USB products.


CMake Warning at /Users/josh/Code/hw/scratch/ncs-example-application/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
  

        ----------------------------------------------------------
        --- WARNING: To maintain the integrity of secure boot, ---
        --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
        ----------------------------------------------------------


-- Configuring done (3.7s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/josh/Code/hw/scratch/ncs-example-application/build/b0
=== child image b0 -  end ===

CMake Warning at /Users/josh/Code/hw/scratch/ncs-example-application/nrf/subsys/bootloader/cmake/debug_keys.cmake:36 (message):
  

      --------------------------------------------------------------
      --- WARNING: Using generated NSIB public/private key-pair. ---
      --- It should not be used for production.                  ---
      --- See CONFIG_SB_SIGNING_KEY_FILE                         ---
      --------------------------------------------------------------
      

Call Stack (most recent call first):
  /Users/josh/Code/hw/scratch/ncs-example-application/nrf/subsys/bootloader/cmake/provision_hex.cmake:47 (include)
  /Users/josh/Code/hw/scratch/ncs-example-application/nrf/subsys/CMakeLists.txt:20 (include)


-- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/bin/python3 (found version &amp;quot;3.9.6&amp;quot;) found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /Users/josh/Code/hw/scratch/ncs-example-application/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/josh/Code/hw/scratch/ncs-example-application/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.27.3
-- Using NCS Toolchain 2.5.20231017.141038581733 for building. (/opt/nordic/ncs/toolchains/20d68df7e5/cmake)
-- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/bin/python3 (found suitable version &amp;quot;3.9.6&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /Users/josh/Library/Caches/zephyr
-- Zephyr version: 3.4.99 (/Users/josh/Code/hw/scratch/ncs-example-application/zephyr)
-- Found west (found suitable version &amp;quot;1.1.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: nrf52840dongle_nrf52840
-- Found host-tools: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/20d68df7e5/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts
-- Found devicetree overlay: /Users/josh/Code/hw/scratch/ncs-example-application/nrf/modules/mcuboot/usb.overlay
-- Generated zephyr.dts: /Users/josh/Code/hw/scratch/ncs-example-application/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/josh/Code/hw/scratch/ncs-example-application/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/josh/Code/hw/scratch/ncs-example-application/build/mcuboot/zephyr/dts.cmake

warning: LOG_DEFAULT_LEVEL (defined at subsys/logging/Kconfig.filtering:13) was assigned the value
&amp;#39;0&amp;#39; but got the value &amp;#39;&amp;#39;. Check these unsatisfied dependencies: LOG (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_DEFAULT_LEVEL and/or look up
LOG_DEFAULT_LEVEL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.


warning: USB_COMPOSITE_DEVICE (defined at subsys/usb/device/Kconfig:51) was assigned the value &amp;#39;n&amp;#39;
but got the value &amp;#39;y&amp;#39;. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_USB_COMPOSITE_DEVICE and/or look up
USB_COMPOSITE_DEVICE in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.


warning: The choice symbol MCUBOOT_LOG_LEVEL_INF (defined at
subsys/logging/Kconfig.template.log_config:17) was selected (set =y), but no symbol ended up as the
choice selection. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUBOOT_LOG_LEVEL_INF
and/or look up MCUBOOT_LOG_LEVEL_INF in the menuconfig/guiconfig interface. The Application
Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
the manual might be helpful too.


warning: The choice symbol LOG_MODE_MINIMAL (defined at subsys/logging/Kconfig.mode:28) was selected
(set =y), but no symbol ended up as the choice selection. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_MODE_MINIMAL and/or look up
LOG_MODE_MINIMAL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.

Parsing /Users/josh/Code/hw/scratch/ncs-example-application/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/bootloader/mcuboot/boot/zephyr/prj.conf&amp;#39;
Merged configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/bootloader/mcuboot/boot/zephyr/boards/nrf52840dongle_nrf52840.conf&amp;#39;
Merged configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/subsys/bootloader/image/multi_image_mcuboot.conf&amp;#39;
Merged configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/subsys/bootloader/image/fw_info.conf&amp;#39;
Merged configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/build/mcuboot/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/Users/josh/Code/hw/scratch/ncs-example-application/build/mcuboot/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/subsys/usb/device/CMakeLists.txt:22 (message):
  CONFIG_USB_DEVICE_VID has default value 0x2FE3.

  This value is only for testing and MUST be configured for USB products.


CMake Warning at /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
  CONFIG_USB_DEVICE_PID has default value 0x100.

  This value is only for testing and MUST be configured for USB products.


CMake Warning at /Users/josh/Code/hw/scratch/ncs-example-application/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
  

        ----------------------------------------------------------
        --- WARNING: To maintain the integrity of secure boot, ---
        --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
        ----------------------------------------------------------


MCUBoot bootloader key file: /Users/josh/Code/hw/scratch/ncs-example-application/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done (3.8s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/josh/Code/hw/scratch/ncs-example-application/build/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /Users/josh/Code/hw/scratch/ncs-example-application/nrf/modules/mcuboot/CMakeLists.txt:320 (message):
  

          ---------------------------------------------------------
          --- WARNING: Using default MCUBoot key, it should not ---
          --- be used for production.                           ---
          ---------------------------------------------------------
          



CMake Warning at /Users/josh/Code/hw/scratch/ncs-example-application/nrf/cmake/partition_manager.cmake:79 (message):
  

          ---------------------------------------------------------------------
          --- WARNING: Using a bootloader without pm_static.yml.            ---
          --- There are cases where a deployed product can consist of       ---
          --- multiple images, and only a subset of these images can be     ---
          --- upgraded through a firmware update mechanism. In such cases,  ---
          --- the upgradable images must have partitions that are static    ---
          --- and are matching the partition map used by the bootloader     ---
          --- programmed onto the device.                                   ---
          ---------------------------------------------------------------------
          

Call Stack (most recent call first):
  /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/cmake/modules/kernel.cmake:247 (include)
  /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
  /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:8 (find_package)


Traceback (most recent call last):
  File &amp;quot;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/scripts/partition_manager.py&amp;quot;, line 2045, in &amp;lt;module&amp;gt;
    main()
  File &amp;quot;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/scripts/partition_manager.py&amp;quot;, line 1034, in main
    solution.update(solve_region(pm_config, region, region_config,
  File &amp;quot;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/scripts/partition_manager.py&amp;quot;, line 977, in solve_region
    get_region_config(partitions, region_config, static_partitions, system_reqs=pm_config)
  File &amp;quot;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/scripts/partition_manager.py&amp;quot;, line 764, in get_region_config
    solve_complex_region(pm_config, start, size, placement_strategy, region_name, device, static_conf, dp, system_reqs)
  File &amp;quot;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/scripts/partition_manager.py&amp;quot;, line 871, in solve_complex_region
    solution, sub_partitions = resolve(pm_config, dp, system_reqs)
  File &amp;quot;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/scripts/partition_manager.py&amp;quot;, line 313, in resolve
    solve_direction(reqs, sub_partitions, unsolved, solution, &amp;#39;after&amp;#39;)
  File &amp;quot;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/scripts/partition_manager.py&amp;quot;, line 199, in solve_direction
    anchor = current if current in solution else next(solved for solved in reversed(solution)
StopIteration
CMake Error at /Users/josh/Code/hw/scratch/ncs-example-application/nrf/cmake/partition_manager.cmake:323 (message):
  Partition Manager failed, aborting.  Command:
  /opt/nordic/ncs/toolchains/20d68df7e5/bin/python3;/Users/josh/Code/hw/scratch/ncs-example-application/nrf/scripts/partition_manager.py;--input-files;/Users/josh/Code/hw/scratch/ncs-example-application/build/b0/zephyr/include/generated/pm.yml;/Users/josh/Code/hw/scratch/ncs-example-application/build/b0/modules/nrf/subsys/partition_manager/pm.yml.nrf5_mbr;/Users/josh/Code/hw/scratch/ncs-example-application/build/b0/modules/nrf/subsys/partition_manager/pm.yml.secure_boot_storage;/Users/josh/Code/hw/scratch/ncs-example-application/build/mcuboot/zephyr/include/generated/pm.yml;/Users/josh/Code/hw/scratch/ncs-example-application/build/mcuboot/modules/nrf/subsys/partition_manager/pm.yml.nrf5_mbr;/Users/josh/Code/hw/scratch/ncs-example-application/build/zephyr/include/generated/pm.yml;/Users/josh/Code/hw/scratch/ncs-example-application/build/modules/nrf/subsys/partition_manager/pm.yml.nrf5_mbr;--regions;sram_primary;flash_primary;--output-partitions;/Users/josh/Code/hw/scratch/ncs-example-application/build/partitions.yml;--output-regions;/Users/josh/Code/hw/scratch/ncs-example-application/build/regions.yml;--sram_primary-size;0x40000;--sram_primary-base-address;0x20000000;--sram_primary-placement-strategy;complex;--sram_primary-dynamic-partition;sram_primary;--flash_primary-size;0x100000;--flash_primary-base-address;0x0;--flash_primary-placement-strategy;complex;--flash_primary-device;flash_controller;--flash_primary-default-driver-kconfig;CONFIG_SOC_FLASH_NRF
Call Stack (most recent call first):
  /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/cmake/modules/kernel.cmake:247 (include)
  /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
  /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /Users/josh/Code/hw/scratch/ncs-example-application/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:8 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /Users/josh/.pyenv/shims/cmake -DWEST_PYTHON=/Users/josh/.pyenv/versions/3.9.6/Library/Frameworks/Python.framework/Versions/3.9/bin/python -B/Users/josh/Code/hw/scratch/ncs-example-application/build -GNinja -DBOARD=nrf52840dongle_nrf52840 -S/Users/josh/Code/hw/scratch/ncs-example-application/app
                                                                                                                  ─╯&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;this seems to be board specific, but I can&amp;#39;t identify what the issue is... and it still seems like it will build an image that isn&amp;#39;t compatible with external debuggers unless I use &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;fstab_debugger.dtsi&lt;/span&gt; based on &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/7b78393b07a61cc5491ba0b8fc4e45b6b1414a18/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts#L173"&gt;this comment&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also note, when I only have &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;/span&gt; enabled, the dongle still fails to build with a different error,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `text&amp;#39; will not fit in region `FLASH&amp;#39;
/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH&amp;#39; overflowed by 10972 bytes
collect2: error: ld returned 1 exit status&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;making me thing it&amp;#39;s a dongle &lt;span&gt;dts&lt;/span&gt; error, perhaps something like &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/87502/mcubootloader-won-t-build-for-custom-board---zephyr-zephyr_pre0-elf-section-text-will-not-fit-in-region-flash"&gt;this&lt;/a&gt;?:&lt;/p&gt;
&lt;p&gt;Noting for later: seems like the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/156f36f0d1acb24472a5eb15a0d52af6b09051fe/boards/arm/nrf52840dongle_nrf52840/fstab-stock.dtsi#L22"&gt;dongle&lt;/a&gt; has a smaller partition for boot than the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/8c4003eacd144e0d1e593dd333d5bfa6c7a4d473/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts#L271"&gt;dk&lt;/a&gt;. Initial attempts at manually changing map in nrf local west folder&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;fstab-stock.dtsi&lt;/span&gt; did not help...&lt;/p&gt;
&lt;p&gt;..&lt;/p&gt;
&lt;p&gt;..&lt;/p&gt;
&lt;p&gt;..&lt;/p&gt;
&lt;p&gt;Note: in order to make this more easy for you to reproduce, simply pull down this repo:&lt;br /&gt;&lt;a id="" href="https://github.com/parksj10/nrfdongle_build_error/tree/main"&gt;https://github.com/parksj10/nrfdongle_build_error/tree/main&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and&amp;nbsp;follow the README...&lt;br /&gt;&lt;br /&gt;Digging farther, it seems like A) there&amp;#39;s a misconfiguration in the dongle dts&amp;#39;s somewhere (, or b) there is a bug in the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;partition_manager.py&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 dongle flashing via Segger J-link and VSCode</title><link>https://devzone.nordicsemi.com/thread/459542?ContentTypeID=1</link><pubDate>Fri, 08 Dec 2023 14:31:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42e6b21d-581b-4d38-9a03-5d5ddf54fa2c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;The default method here is to enable MCUboot in a project, and then the project will be build as two parts: MCUboot and the application. Both these will be merged into &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/output_build_files.html"&gt;merged.hex&lt;/a&gt;, which is automatically flashed to the nRF chip when you flash it.&lt;/p&gt;
[quote user="parksj10"]Maybe you have links for where to figure this out? I was looking in the Zephyr docs (&lt;a href="https://docs.zephyrproject.org/latest/boards/arm/nrf52840dongle_nrf52840/doc/index.html"&gt;https://docs.zephyrproject.org/latest/boards/arm/nrf52840dongle_nrf52840/doc/index.html&lt;/a&gt;) and they were saying you need to modify the .dts files for the boards, which I would like to avoid doing...[/quote]
&lt;p&gt;See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/index.html"&gt;official docs on bootloaders&lt;/a&gt; or &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples"&gt;my unofficial explanations&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The nRF Connect SDK use the Partition Manager and Multi-Image builds to automatically handle a lot of this, so you would generally not need to do any of that yourself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 dongle flashing via Segger J-link and VSCode</title><link>https://devzone.nordicsemi.com/thread/459468?ContentTypeID=1</link><pubDate>Fri, 08 Dec 2023 07:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f0befc3-ece5-4864-a52d-b4de2dfbc78d</guid><dc:creator>parksj10</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been giving this a shot as I come back around to the project (got very sidetracked on an I2S implementation).&lt;/p&gt;
&lt;p&gt;You said&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;The alternative is of course just to use&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/index.html"&gt;MCUboot&lt;/a&gt;&lt;span&gt;&amp;nbsp;instead, which will nicely integrate with the nRF Connect SDK, and lets you program using J-Link and West to program without issue.&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;However, I&amp;#39;m not quite figuring out how to do this. Do I need to do a one-time flash of the MCUboot loader? When I build an NCS project, is this not included directly? Do you know if there&amp;#39;s a way to make this included in the compiled binary so that when anyone on the project builds/flashes, it automatically insures the devices has the MCU bootloader? Maybe you have links for where to figure this out? I was looking in the Zephyr docs (&lt;a id="" href="https://docs.zephyrproject.org/latest/boards/arm/nrf52840dongle_nrf52840/doc/index.html"&gt;https://docs.zephyrproject.org/latest/boards/arm/nrf52840dongle_nrf52840/doc/index.html&lt;/a&gt;) and they were saying you need to modify the .dts files for the boards, which I would like to avoid doing...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 dongle flashing via Segger J-link and VSCode</title><link>https://devzone.nordicsemi.com/thread/443645?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2023 06:50:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2916e1d4-da3c-4ec9-8d26-27a312646d0e</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="parksj10"]Thanks for the detailed response. I&amp;#39;m amazed at how much documentation you guys have, it&amp;#39;s really great. I also really appreciated your &amp;quot;unofficial&amp;quot; documentation.[/quote]
&lt;p&gt;And thank you for the kind words&lt;/p&gt;
[quote user="parksj10"] FYI I can flash and run with no nRF bootloader, so that&amp;#39;s my working solution for the time being[/quote]
&lt;p&gt;Yep, for developing the application, you don&amp;#39;t really need a bootloader, as you can use an external debugger(The other chip on your DK) to program the nRF chip.&lt;br /&gt;The use-case for a bootloader and DFU is mostly to enable you to program the devices in the field, when you do not have an external bootloader available.&lt;br /&gt;Bootloaders also have some security benefits, which I guess you can learn about if you google something along the lines of &amp;quot;Why use an immutable bootloader microcontrollers&amp;quot;.&lt;/p&gt;
[quote user="parksj10"]I&amp;#39;ll give this a shot when I get time[/quote]
&lt;p&gt;Good luck!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 dongle flashing via Segger J-link and VSCode</title><link>https://devzone.nordicsemi.com/thread/443613?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 18:56:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e51984c3-469c-4420-a3ae-1d1498cc4c6b</guid><dc:creator>parksj10</dc:creator><description>&lt;p&gt;Thanks for the detailed response. I&amp;#39;m amazed at how much documentation you guys have, it&amp;#39;s really great. I also really appreciated your &amp;quot;unofficial&amp;quot; documentation.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll give this a shot when I get time (seems like quite a bit of up front work to learn and implement), and let you know if I have anymore questions. FYI I can flash and run with no nRF bootloader, so that&amp;#39;s my working solution for the time being&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 dongle flashing via Segger J-link and VSCode</title><link>https://devzone.nordicsemi.com/thread/443353?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2023 11:37:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0889bb5-af51-4818-a001-92f2b37174bc</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have two separate SDKs, the &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;nRF5 SDK(old) and nRF Connect SDK(new)&lt;/a&gt;. &lt;br /&gt;These come with different default bootloaders: &lt;br /&gt;nRF5 SDK: &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_modules.html?cp=9_1_3_5"&gt;nRF5 Bootloader&lt;/a&gt;&lt;br /&gt;nRF Connect SDK: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/index.html"&gt;MCUboot&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;nRF5 Bootloader&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The dongles come pre-programmed with the nRF5 Bootloader.&lt;br /&gt;If you want this bootloader, you must program it using the nRF5 SDK, or at least use a hex from the nRF5 SDK. I beleive you should find pre-compiled hex files inside the &lt;a href="https://www.nordicsemi.com/Products/Development-software/nrf5-sdk"&gt;nRF5 SDK&lt;/a&gt; examples folder.&lt;br /&gt;Then if you build with &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_BOARD_HAS_NRF5_BOOTLOADER&lt;/span&gt;=y and the dongle board, it will automatically set &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/cd4e36f63fd444d1e850894ca743ee8e9654fc1a/boards/arm/nrf52840dongle_nrf52840/Kconfig.defconfig#L24"&gt;FLASH_LOAD_OFFSET&lt;/a&gt; to make your hex-file start after the nRF5 bootloader.&amp;nbsp; It also reserves that space using the &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/partition_manager/pm.yml.nrf5_mbr"&gt;partition manager&lt;/a&gt;.&lt;br /&gt;With this, you should be able to flash your application using J-Link, as long as you do not erase everything:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --sectorerase --program build/zephyr/zephyr.hex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Or you could just use the nRF Programmer app / &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Util"&gt;nrfutil&lt;/a&gt; to upload your new firmware using DFU.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;MCUboot&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The alternative is of course just to use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/index.html"&gt;MCUboot&lt;/a&gt; instead, which will nicely integrate with the nRF Connect SDK, and lets you program using J-Link and West to program without issue. &lt;br /&gt;See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/index.html"&gt;official docs on bootloaders&lt;/a&gt; or &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples"&gt;my unofficial explanations&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Did this make sense?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 dongle flashing via Segger J-link and VSCode</title><link>https://devzone.nordicsemi.com/thread/443258?ContentTypeID=1</link><pubDate>Sun, 27 Aug 2023 23:30:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3ccc7d8-5ca4-478c-84c2-4cf427efa675</guid><dc:creator>parksj10</dc:creator><description>&lt;p&gt;Got it running from Jlink Flash by adding the following to the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;prj.conf&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;(found that &lt;a href="https://docs.zephyrproject.org/latest/boards/arm/nrf52840dongle_nrf52840/doc/index.html"&gt;here&lt;/a&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;However, I&amp;#39;m still curious how I can get this whole thing to work while keeping the dfu bootloader intact&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 dongle flashing via Segger J-link and VSCode</title><link>https://devzone.nordicsemi.com/thread/443257?ContentTypeID=1</link><pubDate>Sun, 27 Aug 2023 23:22:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e428a3ad-5903-4d0a-b67a-497d4d91aca2</guid><dc:creator>parksj10</dc:creator><description>&lt;p&gt;Just for reference, this is the output I get when I flash after doing the recover:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Flashing build to 260117435
/bin/sh -c west flash -d /Users/josh/Code/hw/nrf/lights/blinky/build --skip-rebuild --dev-id 260117435

-- west flash: using runner nrfjprog
-- runners.nrfjprog: Flashing file: /Users/josh/Code/hw/nrf/lights/blinky/build/zephyr/zephyr.hex
[ ######               ]   0.000s | Erase file - Check image               [ #####                ]   0.000s | Check image validity - Initialize devic[ ##########           ]   0.000s | Check image validity - Check region 0 s[ ###############      ]   0.000s | Check image validity - block 1 of 2    [ #################### ]   0.009s | Check image validity - Finished        [ #############        ]   0.000s | Erase file - Erasing                   [ ##########           ]   0.000s | Erasing non-volatile memory - block 1 o[ #################### ]   0.000s | Erasing non-volatile memory - Erase suc[ #################### ]   1.261s | Erase file - Done erasing                                                          
[ ######               ]   0.000s | Program file - Checking image          [ #####                ]   0.000s | Check image validity - Initialize devic[ ##########           ]   0.000s | Check image validity - Check region 0 s[ ###############      ]   0.448s | Check image validity - block 1 of 2    [ #################### ]   0.005s | Check image validity - Finished        [ #############        ]   0.000s | Program file - Programming             [ ##########           ]   0.000s | Programming image - block 1 of 1       [ #################### ]   0.000s | Programming image - Write successful   [ #################### ]   0.302s | Program file - Done programming                                                    
[ ######               ]   0.000s | Verify file - Check image              [ #####                ]   0.000s | Check image validity - Initialize devic[ ##########           ]   0.000s | Check image validity - Check region 0 s[ ###############      ]   0.578s | Check image validity - block 1 of 2    [ #################### ]   0.006s | Check image validity - Finished        [ #############        ]   0.000s | Verify file - Verifying                [ ##########           ]   0.000s | Verifying image - block 1 of 1         [ #################### ]   0.000s | Verifying image - Verify successful    [ #################### ]   0.317s | Verify file - Done verifying                                                       
Enabling pin reset.
Applying pin reset.
-- runners.nrfjprog: Board with serial number 260117435 flashed successfully.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>