<?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>MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97057/mcuboot-without-partition-manager</link><description>Hi, I want to implement DFU on an nRF52832 with a mx25r1635f external flash, originally I implement the partitions and everything using the devicetree since I find it a lot more comfortable to use. I followed this proccess: https://devzone.nordicsemi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Mar 2023 17:33:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97057/mcuboot-without-partition-manager" /><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/416101?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 17:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51e439f9-ea2a-4e56-a010-8979db26a7ab</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&amp;nbsp;Please enable the following configs:&lt;/p&gt;
&lt;p&gt;CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y&lt;br /&gt;CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/415162?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 11:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d9198e4-18df-4b6a-bdac-5c1712022c76</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;Hi, ok. I asked just because we&amp;#39;re on a tight schedule. Thank you for the quick response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/415013?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 20:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bc94d62-bd23-47f4-982f-f5a296e0f48c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the files. I could not find the clues on my side, so I ask the team to look into them. Please kindly give us time to investigate the issue.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;br /&gt;Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/414893?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 11:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e2dbd99-75bc-40d0-95d7-84a8fbd0948b</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;Hi, have you got any progress on what the problem could be? Are there any files missing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/414592?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 11:11:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2972f3cd-7586-4fd0-8acd-eeff8bbce98b</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;The overlay file I&amp;#39;ve sent is already updated, but okay. So I&amp;#39;m sending the custom board files, .overlay, pm.yml and prj.conf files, with this you should have everything you need.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/updated-files.zip"&gt;devzone.nordicsemi.com/.../updated-files.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/414497?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 20:43:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73a5cc95-6c87-47b6-9d37-b1fec1e38032</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Please upload the latest overlay file. Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/414490?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 19:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89ee0650-293b-46bb-975e-df8d4aa4adba</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;it happens&amp;nbsp;only when CONFIG_PM_PARTITION_SIZE_LITTLEFS is 0xf000 or more&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/414489?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 19:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:400ff90f-c035-435c-917e-aaf5e6ef8ee2</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Does the issue only happen when the&amp;nbsp;&lt;span&gt;CONFIG_PM_PARTITION_SIZE_LITTLEFS is&amp;nbsp;0x6000? If not, is it possible to provide the log and the updated overly?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/414349?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 11:08:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a351a764-19ce-4457-acb4-faff9f166aee</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;Hi, I don&amp;#39;t have it in the QSPI bus, as I&amp;#39;m using a nrf52832 it does not even include a QSPI bus, I have the flash SPI definitions on the dts file for the custom board:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt; &amp;amp;spi1 {
	 compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	 status = &amp;quot;okay&amp;quot;;
	 pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
	 pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;
	 pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	 clock-frequency = &amp;lt;20000000&amp;gt;;
	 mx25r16: mx25r1635f@0 {
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		spi-max-frequency = &amp;lt;33000000&amp;gt;;
		jedec-id = [c2 28 15];
		size = &amp;lt;DT_SIZE_M(16)&amp;gt;;
	};
 };&lt;/pre&gt;&lt;br /&gt;I forgot to add this piece of code before, sorry.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/414255?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 21:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5946c9c7-2745-4509-8591-e56b48b05513</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not sure what causes the issue, but the overlay seems you are using qpsi for&amp;nbsp;mx25r16. If you disable&amp;nbsp;&lt;span&gt;qpsi as following&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;qspi {
	status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;br /&gt;L114&amp;nbsp;&amp;amp;mx25r16 will not work because the parent&amp;#39;s node&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;qspi is disabled. To use&amp;nbsp;&lt;/span&gt;SPI_NOR driver with your external mx25r16, it should have the thing like this &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/eff20cfb43eb888511eb13b37cc131150cf5919c/samples/drivers/jesd216/boards/nrf52840dk_nrf52840_spi.overlay"&gt;example&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;span&gt;Here is my overlay for your reference:&lt;br /&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (c) 2022 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/* This DTS overlay allows to test MX25R6435F  using SPI_NOR driver */

&amp;amp;pinctrl {
	spi1_alt_default: spi1_alt_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 19)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 20)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 0, 21)&amp;gt;;
		};
	};

	spi1_alt_sleep: spi1_alt_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 19)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 20)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 0, 21)&amp;gt;;
			low-power-enable;
		};
	};
};

/delete-node/ &amp;amp;mx25r64;
/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};

	fstab {
	compatible = &amp;quot;zephyr,fstab&amp;quot;;
	lfs1: lfs1 {
		compatible = &amp;quot;zephyr,fstab,littlefs&amp;quot;;
		mount-point = &amp;quot;/lfs1&amp;quot;;
		partition = &amp;lt;&amp;amp;lfs1_part&amp;gt;;
		automount;
		read-size = &amp;lt;16&amp;gt;;
		prog-size = &amp;lt;16&amp;gt;;
		cache-size = &amp;lt;64&amp;gt;;
		lookahead-size = &amp;lt;32&amp;gt;;
		block-cycles = &amp;lt;512&amp;gt;;
		};
	};
};

&amp;amp;spi1 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;gpio0 17 GPIO_ACTIVE_LOW&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;spi1_alt_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi1_alt_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	mx25r64: mx25r6435f@0  {
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		spi-max-frequency = &amp;lt;33000000&amp;gt;;
		jedec-id = [c2 28 17];
		size = &amp;lt;67108864&amp;gt;;
		wp-gpios = &amp;lt;&amp;amp;gpio0 22 GPIO_ACTIVE_LOW&amp;gt;;
		hold-gpios = &amp;lt;&amp;amp;gpio0 23 GPIO_ACTIVE_LOW&amp;gt;;
		partitions {
			compatible = &amp;quot;fixed-partitions&amp;quot;;
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;
	
		};
	};
};

&amp;amp;qspi {
	status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then, it would show the FS at the external flash as&lt;br /&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/8461.pastedimage1678312481842v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/414235?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 19:17:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b64b2cb1-83c8-4928-8299-70e1936b9f09</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;The memory report I can&amp;#39;t generate, when I try to generate it, it gives me an error. &lt;br /&gt;partitions.yml:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0xc200
  end_address: 0x80000
  region: flash_primary
  size: 0x73e00
external_flash:
  address: 0x83000
  end_address: 0x200000
  region: external_flash
  size: 0x17d000
littlefs_storage:
  address: 0x74000
  device: DT_CHOSEN(nordic_pm_ext_flash)
  end_address: 0x83000
  placement:
    before:
    - tfm_storage
    - end
  region: external_flash
  size: 0xf000
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0xc000
  end_address: 0xc200
  placement:
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0xc000
  end_address: 0x80000
  orig_span: &amp;amp;id001
  - app
  - mcuboot_pad
  region: flash_primary
  size: 0x74000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  end_address: 0x80000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x73e00
  span: *id002
mcuboot_secondary:
  address: 0x0
  device: DT_CHOSEN(nordic_pm_ext_flash)
  end_address: 0x74000
  placement:
    align:
      start: 0x4
  region: external_flash
  share_size:
  - mcuboot_primary
  size: 0x74000
sram_primary:
  address: 0x20000000
  end_address: 0x20010000
  region: sram_primary
  size: 0x10000
&lt;/pre&gt;&lt;br /&gt;overlay file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2019 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

&amp;amp;pinctrl {
    spi0_default: spi0_default {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 6)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 5)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 0, 4)&amp;gt;;
        };
    };

	spi0_sleep: spi0_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 6)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 5)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 0, 4)&amp;gt;;
				low-power-enable;
        };
    };

    spi1_default: spi1_default {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 14)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 13)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 0, 16)&amp;gt;;
        };
    };
	
	spi1_sleep: spi1_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 14)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 13)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 0, 16)&amp;gt;;
				low-power-enable;
        };
    };

	uart1_default: uart1_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 0, 18)&amp;gt;;
			bias-pull-up;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 2)&amp;gt;;
			// max. 5mA drive strength: 
			nordic,drive-mode = &amp;lt;NRF_DRIVE_H0D1&amp;gt;;
		};
	};
};

&amp;amp;adc {
	#address-cells = &amp;lt;1&amp;gt;;
	#size-cells = &amp;lt;0&amp;gt;;

	channel@7 {
		reg = &amp;lt;7&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_AIN7&amp;gt;; /* P0.03 */
		zephyr,resolution = &amp;lt;12&amp;gt;;
	};
};

&amp;amp;spi0 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;gpio0 7 GPIO_ACTIVE_LOW&amp;gt;;
	lsm6dsl@0 {
		compatible = &amp;quot;st,lsm6dsl&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		spi-max-frequency = &amp;lt;4300000&amp;gt;;
	};
};

&amp;amp;spi1 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;gpio0 15 GPIO_ACTIVE_LOW&amp;gt;;
};



/ {
	
	fstab {
		compatible = &amp;quot;zephyr,fstab&amp;quot;;
		lfs1: lfs1 {
			compatible = &amp;quot;zephyr,fstab,littlefs&amp;quot;;
			mount-point = &amp;quot;/lfs1&amp;quot;;
			partition = &amp;lt;&amp;amp;lfs1_part&amp;gt;;
			automount;
			read-size = &amp;lt;16&amp;gt;;
			prog-size = &amp;lt;16&amp;gt;;
			cache-size = &amp;lt;128&amp;gt;;
			lookahead-size = &amp;lt;32&amp;gt;;
			block-cycles = &amp;lt;32&amp;gt;;
		};
	};
	
	zephyr,user {
		io-channels = &amp;lt;&amp;amp;adc 7&amp;gt;;
	};
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r16;
	};
};


&amp;amp;mx25r16 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;
		lfs1_part: partition@0 {
			label = &amp;quot;lfs1_storage&amp;quot;;
			reg = &amp;lt;0x00000000 0x1000000&amp;gt;;
		};
	};
};
&lt;/pre&gt;&lt;br /&gt;config file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_JSON_LIBRARY=y
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_DEBUG=y
CONFIG_CPLUSPLUS=y
CONFIG_LIB_CPLUSPLUS=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_SIZE_OPTIMIZATIONS=y

CONFIG_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y

CONFIG_THREAD_CUSTOM_DATA=n

CONFIG_FPU=y
CONFIG_FP16=n
CONFIG_EDGE_IMPULSE=y
CONFIG_EDGE_IMPULSE_URI=&amp;quot;http://studio.edgeimpulse.com/v1/api/160376/deployment/download?type=zip&amp;quot;
CONFIG_EI_WRAPPER=y

CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=1
#CONFIG_LOG_MODE_IMMEDIATE=y

CONFIG_ADC=y
CONFIG_SENSOR=y
CONFIG_SPI=y

CONFIG_SPI_NOR=y
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y

CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y

CONFIG_PM_PARTITION_SIZE_LITTLEFS=0xf000
#CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y
#CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
#CONFIG_FS_LITTLEFS_CACHE_SIZE=128

CONFIG_BT_HCI_TX_STACK_SIZE_WITH_PROMPT=y
CONFIG_BT_HCI_TX_STACK_SIZE=640
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2000
CONFIG_MPSL_WORK_STACK_SIZE=640
CONFIG_MAIN_STACK_SIZE=3000
CONFIG_IDLE_STACK_SIZE=128
CONFIG_ISR_STACK_SIZE=1024

CONFIG_BT=y
CONFIG_BT_HCI=y
CONFIG_BT_BONDABLE=y
CONFIG_BT_SMP=y
CONFIG_BT_SIGNING=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_PRIVACY=n
CONFIG_BT_ATT_PREPARE_COUNT=10
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_DEVICE_NAME_DYNAMIC=y
CONFIG_BT_DEVICE_NAME_MAX=65
CONFIG_BT_L2CAP_TX_MTU=100
CONFIG_BT_RX_STACK_SIZE=3000
CONFIG_BT_DEBUG_NONE=y
CONFIG_BT_ASSERT=n
CONFIG_BT_DATA_LEN_UPDATE=n
CONFIG_BT_PHY_UPDATE=n
CONFIG_BT_GATT_CACHING=n
CONFIG_BT_GATT_SERVICE_CHANGED=y
CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS=n
CONFIG_BT_HCI_VS_EXT=n
CONFIG_TIMESLICING=n

# Disable Bluetooth controller features not needed
CONFIG_BT_CTLR_PRIVACY=n

# Reduce Bluetooth buffers
CONFIG_BT_BUF_EVT_DISCARDABLE_COUNT=1
CONFIG_BT_BUF_EVT_RX_COUNT=2

CONFIG_BT_L2CAP_TX_BUF_COUNT=2
CONFIG_BT_BUF_ACL_TX_SIZE=256

#habilita update bia BLE
# Enable mcumgr.
CONFIG_MCUMGR=y

# Enable most core commands.
CONFIG_MCUMGR_CMD_IMG_MGMT=y
CONFIG_MCUMGR_CMD_OS_MGMT=y
CONFIG_MCUMGR_SMP_BT=y
CONFIG_MCUMGR_SMP_BT_AUTHEN=n


# Ensure an MCUboot-compatible binary is generated.
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_IMG_MANAGER=y
CONFIG_DFU_TARGET=y
CONFIG_DFU_TARGET_MCUBOOT=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I have no pm_static.yml file.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/414234?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 19:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4bb18fa-c296-4f83-97ac-444cad7e62a5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you provide the memory layout for the partition,&amp;nbsp;partitions.yml under build folder, overlay, and config files? If you are using&amp;nbsp;pm_static.yml, please also share it.&amp;nbsp;&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/pastedimage1678302466946v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/414152?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 13:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe19f249-8d86-4ff0-8130-7feac0e28981</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;even when the value is 0x7000, it still gives this error:&amp;nbsp;&lt;br /&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/pastedimage1678283314526v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/414136?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 13:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:006cb268-12c5-4bd1-89cf-c1612137a758</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;I&amp;#39;m getting this error now when I set CONFIG_PM_PARTITION_SIZE_LITTLEFS to any value bigger than 0xf000:&lt;br /&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/pastedimage1678280747256v2.png" alt=" " /&gt;&lt;br /&gt;do you know what could it be?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/413960?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 20:43:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80ff947f-3905-4605-ac39-b349df39e046</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Check the&amp;nbsp;CONFIG_PM_PARTITION_SIZE_LITTLEFS value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/413954?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 19:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3643608-b58b-404c-80ad-452cb64dfff5</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;Now I&amp;#39;m having one more problem, the partition for littleFS is getting set as 0x6000, even though on the pm.yml file it&amp;#39;s set as 0x7000, I tried to change the value but nothing changed that final result, always get 0x6000.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/413952?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 18:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2cbc853-b765-4ab3-9284-e3fd10b8a606</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Good to hear that. Happy to help.&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/413945?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 17:23:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52231e3f-d0da-40e9-bff5-be5493989e5c</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;It finally compiled!! Now I&amp;#39;m going to test if the basic functions are still&amp;nbsp;working with the partition manager instead of the devicetree. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/413904?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 15:10:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57816478-9014-4248-8eae-8beebaa98529</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you provide the overlay and config files?&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39; undeclared issue is usually caused by the setting inside the overlay. Make sure the overlay has the following section&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};
};&lt;/pre&gt;&lt;/p&gt;
[quote user="BenKrug"]I&amp;#39;m finding weird is that the flash size is going down to 232kB even though the flash has 512kB, that is making my code overflow the flash in 47kB[/quote]
&lt;p&gt;Is it possible to provide the log for the overflow?&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/413829?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 13:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5a98db5-aed3-4e05-a079-67251cefcef7</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;Another thing I&amp;#39;m finding weird is that the flash size is going down to 232kB even though the flash has 512kB, that is making my code overflow the flash in 47kB, but I can&amp;#39;t reduce the code any more than I&amp;#39;ve already done. Is this a bug or is there a configuration I can change to fix that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/413809?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 12:38:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c15f533-8022-4a83-b583-05df95b277e9</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;I made the changes you showed, but now I&amp;#39;m getting this error:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;error: &amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/413657?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 22:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96033432-cd28-4a82-a795-85cdc597a43f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you trying to&amp;nbsp;&lt;span&gt;allocate a separate partition for littleFS? If so, you can take a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/96202/using-littlefs-with-mx25r64-and-nrf-connect-vs-code/407471"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;pm_static.yml example is for nRF5340 which has two cores and that might mislead you, so I have updated it for nRF52. I also update my example in the previous reply with the&amp;nbsp;pm_static.yml as&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcuboot_primary:
    orig_span: &amp;amp;id001
        - mcuboot_pad
        - app
    span: *id001
    address: 0xc000
    size: 0xf2000
    region: flash_primary
mcuboot_primary_app:
    orig_span: &amp;amp;id002
        - app
    span: *id002
    address: 0xc200
    size: 0xf1e00

settings_storage:
    address: 0xfe000
    size: 0x2000
    region: flash_primary

mcuboot_secondary:
    address: 0x0
    size: 0xf2000
    device: MX25R64
    region: external_flash
    

littlefs_storage:
    address: 0xf2000
    size: 0x7000
    device: MX25R64
    region: external_flash
 
external_flash:
   address: 0xf9000
   size: 0x707000
   device: MX25R64
   region: external_flash &lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It would look like this&lt;br /&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/pastedimage1678143254109v2.png" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/413331?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 18:22:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7a08dfc-bb4b-49e0-99e6-b4609518b887</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;Ok, that&amp;#39;s very unfortunate, but if there&amp;#39;s no alternative I&amp;#39;ll have to use it. So I added the pm.yml file and now I&amp;#39;m having trouble with defining my own partition, it gives this error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\ncs\v2.2.0\nrf\include\flash_map_pm.h:41:22: error: &amp;#39;PM_lfs1_part_ID&amp;#39; undeclared here (not in a function)
   41 | #define PM_ID(label) PM_##label##_ID
      |                      ^~~
C:\ncs\v2.2.0\nrf\include\flash_map_pm.h:46:35: note: in expansion of macro &amp;#39;PM_ID&amp;#39;
   46 | #define FIXED_PARTITION_ID(label) PM_ID(label)
      |                                   ^~~~~
c:\Projetos\Smartpet\sirros_smartpet\firmware\Smartpet_NRF52_SDK\src\Sirros_NRF52_configHandler.c:25:32: note: in expansion of macro &amp;#39;FIXED_PARTITION_ID&amp;#39;
   25 |         .storage_dev = (void *)FIXED_PARTITION_ID(lfs1_part),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The pm.yml file is this:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0x20200
  region: flash_primary
  size: 0xdfe00
mcuboot:
  address: 0x0
  region: flash_primary
  size: 0x20000
mcuboot_pad:
  address: 0x20000
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0x20000
  orig_span: &amp;amp;id001
  - mcuboot_pad
  - app
  region: flash_primary
  size: 0xe0000
  span: *id001
mcuboot_primary_app:
  address: 0x20200
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0xdfe00
  span: *id002
mcuboot_primary_1:
  address: 0x0
  size: 0x40000
  device: flash_ctrl
  region: ram_flash
mcuboot_secondary:
  address: 0x00000
  size: 0xe0000
  device: MX25R16
  region: external_flash
mcuboot_secondary_1:
  address: 0xe0000
  size: 0x40000
  device: MX25R16
  region: external_flash
lfs1_part:
  address: 0x120000
  size: 0x6e0000
  device: MX25R16
  region: external_flash&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you know what I&amp;#39;m doing wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/413322?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 17:06:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e42326ea-56ec-4500-bcb8-ef621c2a0d1a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Unfortunately, the&amp;nbsp;&lt;span&gt;Partition Manager cannot be disabled, but you can use&amp;nbsp;s&lt;span&gt;tatic&lt;/span&gt;&amp;nbsp;partitions to modify the memory layout as you desire. See&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#id30"&gt;Configuring&amp;nbsp;static&amp;nbsp;partitions&lt;/a&gt;&amp;nbsp;and &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/4a326af3002824c151b6ab2dbacbcf53b4e120d7/samples/matter/template/configuration/nrf52840dk_nrf52840/pm_static_dfu.yml"&gt;this example&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot without Partition Manager</title><link>https://devzone.nordicsemi.com/thread/413293?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 14:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6514ee6-ddb7-44e4-8f30-ffdcefa3cc4f</guid><dc:creator>BenKrug</dc:creator><description>&lt;p&gt;Hi, I tried to compile the code following this process, however it uses the Partition Manager(in the build folder you can see there is a pm.config) and I don&amp;#39;t want to use it, that was my original question, is there a way to use the DFU Update without using the partition manager?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>