<?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>nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103845/nrf5340-getting-fota-to-work-with-both-app-core-and-net-core-simultaneously</link><description>Hello, 
 I&amp;#39;ve been working on getting FOTA to work for multi-image DFUs, but have not been able to get it. I&amp;#39;ve read through countless forums, and something I heard was that we need external flash to DFU both the app and net core. However, a coworker</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Sep 2023 13:55:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103845/nrf5340-getting-fota-to-work-with-both-app-core-and-net-core-simultaneously" /><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446908?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 13:55:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca1b5c5-6cdb-4ae6-b4ca-b1e08bd829af</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Nolan_G"]Do public tickets get closed when they are solved? I&amp;#39;m going to have more questions related to this when I try to add my own custom peripherals, so I&amp;#39;ll be returning with questions later today. If it&amp;#39;s easier for you, I can open another ticket once I run into more problems.[/quote]
&lt;p&gt;They get closed either if I close them, or if you click &amp;quot;Mark as Answer&amp;quot; on an reply. &lt;/p&gt;
&lt;p&gt;New topics is best on new tickets, to keep DevZone clean.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446780?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 07:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e719e181-0e04-41ba-b580-42b371019d33</guid><dc:creator>Nolan_G</dc:creator><description>&lt;p&gt;I see! My app showed &amp;quot;UPLOAD COMPLETE&amp;quot; so I was alarmed when I tried uploading something with the wrong signature. However, the device still showed the same BLE name as the former image, so I was confused. That makes sense!&lt;/p&gt;
&lt;p&gt;Thanks so much, and thanks for the tips along the way! Do public tickets get closed when they are solved? I&amp;#39;m going to have more questions related to this when I try to add my own custom peripherals, so I&amp;#39;ll be returning with questions later today. If it&amp;#39;s easier for you, I can open another ticket once I run into more problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446777?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 07:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:818f108a-a036-419f-806a-b71901d2562c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Nolan_G"]&lt;p&gt;Also, what happens when I try to upload a firmware image signed with the wrong signature, but I select Confirm Only? The image with the wrong signature should get rejected, right? But then how does it fall back on the correct firmware from before?&lt;/p&gt;
&lt;p&gt;Does checking signatures work with Confirm Only?&lt;/p&gt;[/quote]
&lt;p&gt;Yes, checking of signatures always work. MCUboot will check signatures &lt;strong&gt;before&lt;/strong&gt; swapping, and just not swap, leaving the old application in primary slot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446773?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 07:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f2094e1-a753-4890-91b3-4d390a36b287</guid><dc:creator>Nolan_G</dc:creator><description>&lt;p&gt;Okay, great!&lt;/p&gt;
&lt;p&gt;Also, what happens when I try to upload a firmware image signed with the wrong signature, but I select Confirm Only? The image with the wrong signature should get rejected, right? But then how does it fall back on the correct firmware from before?&lt;/p&gt;
&lt;p&gt;Does checking signatures work with Confirm Only?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446771?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 07:00:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68d41972-a18a-4fcb-be1b-326675387ac8</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Nolan_G"]for some odd reason, I got my FOTAing to work after randomly changing a few settings.[/quote]
&lt;p&gt;Exiting news!&lt;/p&gt;
[quote user="Nolan_G"]Do you know how to only use internal flash? My coworker told me that we don&amp;#39;t have an external flash on our real device (non-DK board), so we have to develop without one.[/quote]
&lt;p&gt;See my previous answer:&lt;/p&gt;
[quote user="Sigurd Hellesvik"]&lt;p&gt;We are working on adding it more easily in these PRs:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/10060"&gt;https://github.com/nrfconnect/sdk-nrf/pull/10060&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/pull/235"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/235&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you want to use internal flash for now, I think you can have a look this sample:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3542.peripheral_5F00_lbs_5F00_dfu_2800_2_2900_.zip"&gt;peripheral_lbs_dfu(2).zip&lt;/a&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
[quote user="Nolan_G"]Thanks so much for your help thus far![/quote]
&lt;p&gt;Happy to help! &lt;/p&gt;
[quote user="Nolan_G"]Also, I&amp;#39;m no longer using mcuboot.overlay anymore, and I have that excerpt in my main overlay file. Should I have it separate?[/quote]
&lt;p&gt;You can have overlay filed for DTS three places, and here is the difference:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Board files: Will affect both application and child images&lt;/li&gt;
&lt;li&gt;Inside project folder, as described in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/howtos.html#set-devicetree-overlays"&gt;Set Devicetree overlays&lt;/a&gt;. For example project/boards/board_name.overlay. This will affect &lt;strong&gt;only&lt;/strong&gt; application&lt;/li&gt;
&lt;li&gt;Inside project/child_image/somewhere, as described in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/multi_image.html#permanent-configuration-changes-to-child-images"&gt;Permanent configuration changes to child images&lt;/a&gt;. This will affect &lt;strong&gt;only&lt;/strong&gt; the child image (bootloader in your case&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446769?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 06:48:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d6bc886-46f8-4646-97d4-2a4a9f641271</guid><dc:creator>Nolan_G</dc:creator><description>&lt;p&gt;Also, I&amp;#39;m no longer using mcuboot.overlay anymore, and I have that excerpt in my main overlay file. Should I have it separate?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446768?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 06:47:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08e51f50-4fa5-475c-a3af-17701fc78a45</guid><dc:creator>Nolan_G</dc:creator><description>&lt;p&gt;Hi Sigurd, for some odd reason, I got my FOTAing to work after randomly changing a few settings.&lt;/p&gt;
&lt;p&gt;Here are the files I have right now. It may be a fluke, and I have to look more into it.&lt;/p&gt;
&lt;p&gt;My overlay file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// To get started, press Ctrl+Space to bring up the completion menu and view the available nodes.

// You can also use the buttons in the sidebar to perform actions on nodes.
// Actions currently available include:

// * Enabling / disabling the node
// * Adding the bus to a bus
// * Removing the node
// * Connecting ADC channels

// For more help, browse the DeviceTree documentation at https://docs.zephyrproject.org/latest/guides/dts/index.html
// You can also visit the nRF DeviceTree extension documentation at https://nrfconnect.github.io/vscode-nrf-connect/devicetree/nrfdevicetree.html

/ {
    chosen {
        nordic,pm-ext-flash = &amp;amp;mx25r64;
    };
};


/ {
	zephyr,user {
		io-channels = &amp;lt;&amp;amp;adc 0&amp;gt;, &amp;lt;&amp;amp;adc 1&amp;gt;;
	};
};

&amp;amp;pinctrl {
    spi2_default: spi2_default {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK, 1, 15)&amp;gt;,
                &amp;lt;NRF_PSEL(SPIM_MOSI, 0, 30)&amp;gt;,
                &amp;lt;NRF_PSEL(SPIM_MISO, 1, 0)&amp;gt;;
        };
    };

    spi2_sleep: spi2_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK, 1, 15)&amp;gt;,
                &amp;lt;NRF_PSEL(SPIM_MOSI, 0, 30)&amp;gt;,
                &amp;lt;NRF_PSEL(SPIM_MISO, 1, 0)&amp;gt;;
            low-power-enable;
        };
    };
};

&amp;amp;spi2 {
    compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    cs-gpios = &amp;lt;&amp;amp;gpio1 14 1&amp;gt;;
    pinctrl-0 = &amp;lt;&amp;amp;spi2_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;spi2_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;adc {
    #address-cells = &amp;lt;1&amp;gt;;
    #size-cells = &amp;lt;0&amp;gt;;
 
    channel@0 {
        reg = &amp;lt;0&amp;gt;;
        zephyr,gain = &amp;quot;ADC_GAIN_1_6&amp;quot;;
        zephyr,reference = &amp;quot;ADC_REF_INTERNAL&amp;quot;;
        zephyr,acquisition-time = &amp;lt;ADC_ACQ_TIME_DEFAULT&amp;gt;;
        zephyr,input-positive = &amp;lt;NRF_SAADC_AIN4&amp;gt;;
    };

    channel@1 {
        reg = &amp;lt;1&amp;gt;;
        zephyr,gain = &amp;quot;ADC_GAIN_1_6&amp;quot;;
        zephyr,reference = &amp;quot;ADC_REF_INTERNAL&amp;quot;;
        zephyr,acquisition-time = &amp;lt;ADC_ACQ_TIME_DEFAULT&amp;gt;;
        zephyr,input-positive = &amp;lt;NRF_SAADC_AIN5&amp;gt;;
    };
 };
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;My pm_static.yml:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0x10200
  end_address: 0x66000
  region: flash_primary
  size: 0x55E00
mcuboot:
  address: 0x0
  end_address: 0x10000
  region: flash_primary
  size: 0x10000
mcuboot_pad:
  address: 0x10000
  end_address: 0x10200
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0x10000
  end_address: 0x66000
  orig_span: &amp;amp;id001
  - mcuboot_pad
  - app
  region: flash_primary
  size: 0x56000
  span: *id001
mcuboot_primary_app:
  address: 0x10200
  end_address: 0x66000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x55E00
  span: *id002
mcuboot_secondary:
  address: 0x66000
  end_address: 0xBC000
  size: 0x56000
mcuboot_secondary_1:
  address: 0xBC000
  end_address: 0xFC000
  size: 0x40000
otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc
pcd_sram:
  address: 0x20000000
  end_address: 0x20002000
  region: sram_primary
  size: 0x2000
ram_flash:
  address: 0x40000
  end_address: 0x40000
  region: ram_flash
  size: 0x0
rpmsg_nrf53_sram:
  address: 0x20070000
  end_address: 0x20080000
  placement:
    before:
    - end
  region: sram_primary
  size: 0x10000
settings_storage:
  address: 0xFC000
  end_address: 0x100000
  region: flash_primary
  size: 0x4000
sram_primary:
  address: 0x20002000
  end_address: 0x20070000
  region: sram_primary
  size: 0x6e000
mcuboot_primary_1:
  address: 0x0
  size: 0x40000
  device: flash_ctrl
  region: ram_flash
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;My prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Enable Bootloader
CONFIG_BOOTLOADER_MCUBOOT=y

# Enable SMP Server
CONFIG_MCUMGR=y
CONFIG_BASE64=y
CONFIG_MCUMGR_TRANSPORT_UART=y
CONFIG_MCUMGR_GRP_IMG=y

# Enable BLE transfer
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME=&amp;quot;Test SMP Server&amp;quot;
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y

CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP=y
CONFIG_MCUBOOT_IMAGE_VERSION=&amp;quot;2.3.0+0&amp;quot;
CONFIG_NRF53_UPGRADE_NETWORK_CORE=y
CONFIG_UPDATEABLE_IMAGE_NUMBER=2
CONFIG_ADD_MCUBOOT_MEDIATE_SIM_FLASH_DTS=y


CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096

# configure peripherals
CONFIG_NRFX_TWIM0=y
CONFIG_NRFX_TWIM1=y
CONFIG_I2C=y
CONFIG_NRFX_QSPI=n
CONFIG_SPI=y
CONFIG_SPI_EXTENDED_MODES=y
CONFIG_NRFX_SPIM2=y
CONFIG_NRFX_SPIM3=y
CONFIG_NRFX_SPIM4=y
CONFIG_NRFX_TIMER0=y
CONFIG_NRFX_TIMER1=y
CONFIG_NRFX_TIMER2=y
CONFIG_NRFX_PWM0=y

CONFIG_SCHED_DUMB=y
CONFIG_SCHED_DEADLINE=y

CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n

#DFU Stuff
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_ZCBOR=y
CONFIG_MCUMGR=y
# CONFIG_BT_SMP=y


# add DSP libraries
CONFIG_CMSIS_DSP=y
CONFIG_CMSIS_DSP_STATISTICS=y
CONFIG_FORCE_NO_ASSERT=y
#CONFIG_BT=y
#CONFIG_BT_PERIPHERAL=y
CONFIG_ADD_MCUBOOT_MEDIATE_SIM_FLASH_DTS=y

#TDCS Stuff
CONFIG_ADC=y
CONFIG_NRFX_SAADC=y

# watchdog
CONFIG_WATCHDOG=y
CONFIG_WDT_DISABLE_AT_BOOT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;My mcuboot.conf file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE=&amp;quot;C:/Users/NolanGeer/Documents/GitHub/nrf5340_firmware/keys/nirskey.pem&amp;quot;
# Enable flash simulator
CONFIG_FLASH_SIMULATOR=y
CONFIG_FLASH_SIMULATOR_DOUBLE_WRITES=y
CONFIG_FLASH_SIMULATOR_STATS=n
CONFIG_NORDIC_QSPI_NOR=y
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16

CONFIG_MAIN_STACK_SIZE=10240
CONFIG_BOOT_MAX_IMG_SECTORS=256


CONFIG_NRF53_MULTI_IMAGE_UPDATE=y
CONFIG_UPDATEABLE_IMAGE_NUMBER=2

CONFIG_BOOT_UPGRADE_ONLY=y
CONFIG_BOOT_IMAGE_ACCESS_HOOK_NRF5340=y
CONFIG_BOOT_IMAGE_ACCESS_HOOKS=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have to figure out what changed, but my RTT logging showed that my BLE initiated properly, and then the FOTAing worked!&lt;/p&gt;
&lt;p&gt;Do you know how to only use internal flash? My coworker told me that we don&amp;#39;t have an external flash on our real device (non-DK board), so we have to develop without one.&lt;/p&gt;
&lt;p&gt;Thanks so much for your help thus far!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446766?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 06:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:512a44b0-7d1e-49e6-88a2-a1988a151ff5</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Nolan_G"]I believe this is the root of the problem, but I&amp;#39;m not sure how to fix it due to the nature of the warnings. Here is a photo:[/quote]
&lt;p&gt;Those are a lot of warnings yes.&lt;br /&gt;I do not use the &amp;quot;Problems&amp;quot; tab in VS Code, but I think it does not always know the full picture. &lt;br /&gt;Can we instead copy me the full log from the Terminal? I show which log I mean in this video:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/case314711_5F00_recording.mp4"&gt;devzone.nordicsemi.com/.../case314711_5F00_recording.mp4&lt;/a&gt;I think most of your warnings are set because the stuff does not have DTS enabled for their peripheras, such as:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1695191604137v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I think a lot of those are because you build for the DK, and as you say the DK does not have all peripherals connected/enabled.&lt;br /&gt;Can you see if you get the same warnings when buliding for the custom board?&lt;/p&gt;
&lt;p&gt;From your warnings, these seem the most relevant here:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1695191706789v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Try to set&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;inside child_image/mcuboot.overlay. Maybe it sets some stuff automatically.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446730?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 18:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cef212ef-b8c9-4551-b804-3f077268b4bc</guid><dc:creator>Nolan_G</dc:creator><description>&lt;p&gt;Okay, I have some small logs!&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.3.99-ncs1-1 ***
Successfully initialized I2C.
Failed to set regulator config.
PMIC READ: 0x00
Failed to read MAX20303 interrrupt registers.
Failed to read MAX20303 status registers.
Unable to initialize the MAX20303 PMIC.
FG READ Voltage: 0 mV
Unable to initialize the MAX20303 FG.
UNIX Time: 216505328339
ERROR: Unable to initialize the PCF85263A RTC.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It does seem that the application fails to boot, and it appears to be due to my PMIC not being initiated.&lt;/p&gt;
&lt;p&gt;I believe this has to do with my SPI also not being initiated due to some Kconfig warnings.&lt;/p&gt;
&lt;p&gt;EDIT: My coworker told me this is because my DK isn&amp;#39;t connected to any peripherals, so those errors are expected. He said they&amp;#39;re connected via I2C, so they have nothing to do with SPI. He also said they shouldn&amp;#39;t have anything to do with Bluetooth. I&amp;#39;ll enable deeper levels of logs to get the BLE details.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/103845/nrf5340-getting-fota-to-work-with-both-app-core-and-net-core-simultaneously/446590"]Keep a watch on your build logs though, sometimes they complete with warnings such as &amp;quot;CONFIG____ was ignored because of SOME_OTHER_CONFIG&amp;quot;, so what you set is not always what ends up in the build folder.[/quote]
&lt;p&gt;I believe this is the root of the problem, but I&amp;#39;m not sure how to fix it due to the nature of the warnings. Here is a photo:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1695148997625v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;Most of these say &amp;quot;missing dependencies: n&amp;quot; which is unresolvable, and some of the other have missing dependencies that &amp;quot;can&amp;#39;t be set&amp;quot; manually.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446590?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 08:02:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aad6977d-73d4-4473-b618-9590c7604938</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Nolan_G"]d my pristine build takes about 3min 30sec, so it&amp;#39;s painful to change one by one without knowing what I&amp;#39;m actually changing. I[/quote]
&lt;p&gt;Ah yep, I know that feeling all too well.&lt;/p&gt;
&lt;p&gt;Not saying you should change, but just as a FYI: but did you know that our stuff builds faster on linux? I even have some colleguas using WSL to build on windows, as it speeds up builds.&lt;/p&gt;
[quote user="Nolan_G"]Duplicate values won&amp;#39;t be set twice and/or will have a squiggly line to indicate removing them, so I&amp;#39;m assuming this is okay to do.[/quote]
&lt;p&gt;I agree.&lt;/p&gt;
&lt;p&gt;Keep a watch on your build logs though, sometimes they complete with warnings such as &amp;quot;CONFIG____ was ignored because of SOME_OTHER_CONFIG&amp;quot;, so what you set is not always what ends up in the build folder. You can also double check that everything is set in build/zephyr/.config and build/mcuboot/zephyr/.config.&lt;/p&gt;
[quote user="Nolan_G"]Also, some important information, multi-image FOTAing used to work with my application in SDK 2.2.0, and I enabled dfu with these lines.[/quote]
&lt;p&gt;Interesting. If i remember correctly, I think that there was some changes to QSPI drivers in-between these versions. But you did not use external flash in your custom board so maybe not that then.&lt;/p&gt;
[quote user="Nolan_G"]I&amp;#39;ll try enabling and viewing Logging, and I&amp;#39;ll let you know what I find![/quote]
&lt;p&gt;Yea, I think logging is the way to go here. I have seen a lot of error logs from the bootloader, so if I see yours, I think I will be able to tell you what is wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446578?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 07:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5291a043-3222-4551-8626-8f4890c9e288</guid><dc:creator>Nolan_G</dc:creator><description>&lt;p&gt;Thanks again for the response, Sigurd!&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/103845/nrf5340-getting-fota-to-work-with-both-app-core-and-net-core-simultaneously/446562"]Hold on, do you not use git?[/quote]
&lt;p&gt;Haha, I do use git. I have about 6 branches of different commits in different stages right now. I&amp;#39;m hesitant to change Kconfig values because I don&amp;#39;t understand all of them,&amp;nbsp;and my pristine build takes about 3min 30sec, so it&amp;#39;s painful to change one by one without knowing what I&amp;#39;m actually changing. I should definitely sit and patiently read through what every option does so that I can have a better idea about what I&amp;#39;m doing, though.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/103845/nrf5340-getting-fota-to-work-with-both-app-core-and-net-core-simultaneously/446562"]So what I want to know is this: Is it only BLE from the app that does not work, or does no part of the app work? If only some parts of the app work, which? Logging would be a nice tool to figure this out.[/quote]
&lt;p&gt;I&amp;#39;m actually not sure if the rest of the app is working since connecting to Bluetooth is typically what I do before trying any of the other modules.&lt;/p&gt;
&lt;p&gt;In its current state, before adding any changes to make multicore FOTAing work, my application can be detected on BLE and connected to without the configuration changes from the sample application I linked as well as the sample application you linked. So, basically, my application without any changes can be seen on BLE, but when I try my app + either of the samples&amp;#39; Kconfig settings, it&amp;#39;s no longer detectable. I actually, literally, append the prj.conf from the sample to the end of my prj.conf, as well as the mcuboot.conf to the end of my own mcuboot.conf. In the sample, the mcuboot.conf isn&amp;#39;t called mcuboot.conf but rather it&amp;#39;s a .conf within a board name folder within a mcuboot folder. These seem to have functioned the same. Duplicate values won&amp;#39;t be set twice and/or will have a squiggly line to indicate removing them, so I&amp;#39;m assuming this is okay to do.&lt;/p&gt;
&lt;p&gt;Also, some important information, multi-image FOTAing used to work with my application in SDK 2.2.0, and I enabled dfu with these lines.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void dfu_init(void)
{
    os_mgmt_register_group();
    img_mgmt_register_group();

    smp_bt_register();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try enabling and viewing Logging, and I&amp;#39;ll let you know what I find!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446562?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 06:42:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6bbe9f9-74d3-4b0f-8301-ecbc0581f802</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Nolan_G"]&lt;p&gt;The sample seemed to work with it enabled though, which was a bit confusing.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/103845/nrf5340-getting-fota-to-work-with-both-app-core-and-net-core-simultaneously/446457"&gt;&lt;/a&gt;&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;That is because the external flash enabling in the Partition manager sets up some stuff automatically, which are also needed for internal flash. So in current versions of the SDK, you kindof need it either way.&lt;/p&gt;
[quote user="Nolan_G"]Yes, the Bluetooth works for the sample project I&amp;#39;m using for FOTAing as well as a sample project for Bluetooth mesh. These are a bit fancier than plain Bluetooth firmware but they show that the Bluetooth works regardless.[/quote]
&lt;p&gt;Nice nice! Just wanted to make sure the antenna on the custom board actually worked. Have had tickets before where we debugged software only for the issue to be hardware.&lt;/p&gt;
[quote user="Nolan_G"]I do not believe so. The build completes in VSCode, and that&amp;#39;s the only logging we have. I&amp;#39;ve enabled debugging logs in prj.conf before, but I&amp;#39;m not sure where those are output to. I&amp;#39;ve not seen them before.[/quote]
&lt;p&gt;Not only for bootloaders, I advise you to have logging output from your nRF chip. It will make it a lot easier to debug issues, for example the current issue. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/test_and_optimize/logging.html"&gt;Logging in nRF Connect SDK&lt;/a&gt; for docs on this. UART and RTT are the most used alternatives. For custom board, you have not always routed out an UART for logging, so then you may have to use RTT, whcih can be used via a debugger.&lt;br /&gt;Making RTT work with the bootloader is a bit tricky, so if you need that, I suggest you first try it from the DK. I can help doing that if needed.&lt;/p&gt;
[quote user="Nolan_G"] and I&amp;#39;m hesitant to change any Kconfig values since I know that I can break the build easily. [/quote]
&lt;p&gt;Hold on, do you not use git?&lt;br /&gt;If you do use git, can you commit your current progress to something (testing branch or whatever), and it will be saved.&lt;br /&gt;If you do not use git, I &lt;strong&gt;highly&lt;/strong&gt; recommend that you use any kind of version control. &lt;/p&gt;
[quote user="Nolan_G"]o if the sample project can display on Bluetooth then I&amp;#39;m not sure why mine can&amp;#39;t.[/quote]
&lt;p&gt;Maybe your project crashes before it gets to the application?&lt;br /&gt;The DK has external flash, so if the bootloader can not find external flash and therefore crashes, it will not run the application. Or something similar like that.&lt;br /&gt;So what I want to know is this: Is it only BLE from the app that does not work, or does no part of the app work? If only some parts of the app work, which? Logging would be a nice tool to figure this out.&lt;/p&gt;
[quote user="Nolan_G"]Also, what exactly is happening when I select &amp;quot;Confirm and Test&amp;quot; instead of &amp;quot;Confirm Only&amp;quot;? How is it &amp;quot;confirming&amp;quot; the images? What is being tested?[/quote]
&lt;p&gt;See my repo explaining &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp#test-or-confirm"&gt;test or confirm&lt;/a&gt;. &amp;quot;Test &amp;amp; Confirm&amp;quot; mode will first tag the image as Test, then reboot the device to swap, and then tag the image as confirm. This is so that if the new image crashes, the bootloader will revert to the old one, which we know works. It is a feature to not break the device with a broker update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446495?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 15:42:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b871d13-28a6-4faf-bfa5-34e54a1fda79</guid><dc:creator>Nolan_G</dc:creator><description>&lt;p&gt;Also, what exactly is happening when I select &amp;quot;Confirm and Test&amp;quot; instead of &amp;quot;Confirm Only&amp;quot;? How is it &amp;quot;confirming&amp;quot; the images? What is being tested?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446493?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 15:38:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad46450f-af78-4d6e-b9f4-6427c327a234</guid><dc:creator>Nolan_G</dc:creator><description>&lt;p&gt;Hi Sigurd, thanks for the reply!&lt;/p&gt;
&lt;p&gt;For your first question,&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/103845/nrf5340-getting-fota-to-work-with-both-app-core-and-net-core-simultaneously/446457"]&lt;p&gt;Does it behave as expected if you only &amp;quot;Confirm&amp;quot; and reset manually?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;it does, actually! I&amp;#39;m not sure why I hadn&amp;#39;t tried this before. It seems my debugging skills are failing me. I&amp;#39;ve been tunnel-visioning on changing Kconfig values for a little over a week now, so my head is stuck in the weeds!&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/103845/nrf5340-getting-fota-to-work-with-both-app-core-and-net-core-simultaneously/446457"]Let me know what you would expect and I can try to guide you to how to fix that.[/quote]
&lt;p&gt;Honestly, my goal is to just get FOTAing both cores to work as easily as possible. My coworker told me we didn&amp;#39;t have an external flash and we disabled our QSPI as you can see in our prj.conf file. The sample seemed to work with it enabled though, which was a bit confusing.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/103845/nrf5340-getting-fota-to-work-with-both-app-core-and-net-core-simultaneously/446457"]&lt;p&gt;Can you see Bluetooth on your own device with simple Bluetooth firmware, not any bootloader or anything fancy?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Yes, the Bluetooth works for the sample project I&amp;#39;m using for FOTAing as well as a sample project for Bluetooth mesh. These are a bit fancier than plain Bluetooth firmware but they show that the Bluetooth works regardless.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/103845/nrf5340-getting-fota-to-work-with-both-app-core-and-net-core-simultaneously/446457"]&lt;p&gt;Do you get any error logs from your app or bootloader?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I do not believe so. The build completes in VSCode, and that&amp;#39;s the only logging we have. I&amp;#39;ve enabled debugging logs in prj.conf before, but I&amp;#39;m not sure where those are output to. I&amp;#39;ve not seen them before.&lt;/p&gt;
&lt;p&gt;It seems like I&amp;#39;m very close to getting my project to work on FOTA, and I&amp;#39;m hesitant to change any Kconfig values since I know that I can break the build easily. I have every property to display on Bluetooth, because I copied the sample&amp;#39;s prj.conf and added them to the end of my own prj.conf, so if the sample project can display on Bluetooth then I&amp;#39;m not sure why mine can&amp;#39;t. It was displaying before, so something may have changed it.&lt;/p&gt;
&lt;p&gt;Thanks for helping me with this!&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;Nolan Geer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Getting FOTA to work with both app core and net core simultaneously</title><link>https://devzone.nordicsemi.com/thread/446457?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 12:50:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52d85afc-1d1a-4786-8440-a81f46f28293</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Nolan,&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s see if we can make this work.&lt;/p&gt;
&lt;p&gt;First, I will comment on your ticket, and ask some questions.&lt;/p&gt;
[quote user=""]However, a coworker told me he was able to partition the internal flash on our DK boards to support FOTAing without external flashing. [/quote]
&lt;p&gt;You can do it with internal flash, but thing is, the &amp;quot;nordic,pm-ext-flash = &amp;amp;mx25r64;&amp;quot; configuration enables a lot of stuff automatically in the background, so this is easier to start with.&lt;/p&gt;
&lt;p&gt;We are working on adding it more easily in these PRs:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/10060"&gt;https://github.com/nrfconnect/sdk-nrf/pull/10060&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/pull/235"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/235&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you want to use internal flash for now, I think you can have a look this sample:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_lbs_5F00_dfu_2800_2_2900_.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_lbs_5F00_dfu_2800_2_2900_.zip&lt;/a&gt;&lt;/p&gt;
[quote user=""]When I would first start the DFU, after I clicked &amp;quot;Confirm and Test&amp;quot; i[/quote]
&lt;p&gt;From&amp;nbsp; my repo:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1695039903639v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Does it behave as expected if you only &amp;quot;Confirm&amp;quot; and reset manually?&lt;/p&gt;
&lt;p&gt;That being said, it should be possible to automate this more, but you may have to enable more functionality for the project in that case. Let me know what you would expect and I can try to guide you to how to fix that.&lt;/p&gt;
[quote user=""]For my own project, currently I&amp;#39;m able to build and flash my board, but I can&amp;#39;t see it being listed as a Bluetooth device to connect to.[/quote]
&lt;p&gt;Can you see Bluetooth on your own device with simple Bluetooth firmware, not any bootloader or anything fancy?&lt;/p&gt;
&lt;p&gt;Do you get any error logs from your app or bootloader?&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></channel></rss>