<?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>Partitions for custom boards with SDK 2.8.0 and sysbuild</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116904/partitions-for-custom-boards-with-sdk-2-8-0-and-sysbuild</link><description>Hi everyone! I have a custom board with the Adarfuit UF2 Bootloader ( https://github.com/adafruit/Adafruit_nRF52_Bootloader) and a SoftDevice. With the old SDK v2.5.1 I created my own boards and defined fixed partition in the dts of my board files to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Dec 2024 14:57:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116904/partitions-for-custom-boards-with-sdk-2-8-0-and-sysbuild" /><item><title>RE: Partitions for custom boards with SDK 2.8.0 and sysbuild</title><link>https://devzone.nordicsemi.com/thread/513472?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 14:57:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10c59460-791c-4f81-8e67-06170d39d5be</guid><dc:creator>Mathias Gangl</dc:creator><description>&lt;p&gt;Okay, then I&amp;#39;ll do it like that.&lt;br /&gt;Thank you very much for your support!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partitions for custom boards with SDK 2.8.0 and sysbuild</title><link>https://devzone.nordicsemi.com/thread/513446?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 13:50:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f11d230f-b8cf-45e1-b2cf-6d5df45e94cf</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ah, I see. Testing,&amp;nbsp;I see that setting&amp;nbsp;CONFIG_FLASH_LOAD_OFFSET=0x27000 in prj.conf that value is used in the config system, but the application is stil placed at 0x1000 when using sysbuild. (We only test this for thenRF52840 dongle, that has the MBR but not SoftDevice, as this is a special case).&lt;/p&gt;
&lt;p&gt;I suggest that you use a static partition, which is essentially what is done with the dongle as well (see &lt;a href="https://github.com/nrfconnect/sdk-nrf/commit/141d711c910cba10ec1ccf204af8825ebb6d4890"&gt;this old commiit&lt;/a&gt; and the file it points to,&amp;nbsp;pm.yml.nrf5_mbr).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partitions for custom boards with SDK 2.8.0 and sysbuild</title><link>https://devzone.nordicsemi.com/thread/513395?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 11:12:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be2c817e-f5d6-4922-a623-049846a38b84</guid><dc:creator>Mathias Gangl</dc:creator><description>&lt;p&gt;I tried now to use the name BOARD_HAS_NRF5_BOOTLOADER instead of&amp;nbsp;BOARD_HAS_UF2_BOOTLOADER and the image files have an&amp;nbsp;offset of 0x1000.&lt;br /&gt;&lt;br /&gt;But only an offset 0x1000 and not 0x27000 which I would need. In general, anything which I configure in the Kconfig.defconfig as default value for&amp;nbsp;FLASH_LOAD_OFFSET seems to be ignored, it is always 0x1000.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partitions for custom boards with SDK 2.8.0 and sysbuild</title><link>https://devzone.nordicsemi.com/thread/513394?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 11:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d0e0302-fd81-4079-a0d9-3bac449a9191</guid><dc:creator>Mathias Gangl</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;I tried it with the blinky sample and I can find all three configs in the build/blinky/zephyr/.config file. But still the image starts at offset 0x0. The weird thing is though, I get the following output in the terminal:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Converted to uf2, output size: 75776, start address: 0x27000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But if I have a look at the image in the nRF Connect Programmer it starts at 0x0. And when I flash the UF2 image, my bootloader and softdevice are overwritten.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is what I specified in my board files:&lt;br /&gt;&lt;br /&gt;Kconfig:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config BOARD_HAS_UF2_BOOTLOADER
	bool &amp;quot;Board has Adafruit UF2 bootloader&amp;quot;
	default y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Kconfig.defconfig: (using 0x27000 as offset to take softdevice into account)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config FLASH_LOAD_OFFSET
	default 0x27000
	depends on BOARD_HAS_UF2_BOOTLOADER &amp;amp;&amp;amp; (MCUBOOT || !USE_DT_CODE_PARTITION)

config BT_CTLR
	default BT

if USB_DEVICE_STACK

config UART_CONSOLE
	default CONSOLE

config USB_DEVICE_INITIALIZE_AT_BOOT
	default y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;custom_board_defconfig:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
# Enable MPU
CONFIG_ARM_MPU=y

# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y

# enable GPIO
CONFIG_GPIO=y

# enable uart driver
CONFIG_SERIAL=y

# enable console
CONFIG_CONSOLE=y

# Logger cannot use itself to log
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y

# enable USB
CONFIG_USB_DEVICE_STACK=y

# Build UF2 by default, supported by the Adafruit nRF52 Bootloader
CONFIG_BUILD_OUTPUT_UF2=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The other files are similar to the nrf52840 dongle files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partitions for custom boards with SDK 2.8.0 and sysbuild</title><link>https://devzone.nordicsemi.com/thread/513233?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 13:58:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1ab1a9a-5824-4092-9c74-e8b7268467d3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Specifically, the fixed partition in my dts files are ignored.[/quote]
&lt;p&gt;Yes, that is correct. With the nRF Connect SDK, the partition manager is used for partitioning the memory, and not the device tree. What you have in the device tree is ignored. This is regardless if you are using sysbuild or not (or hardware model v2 or not for that matter).&lt;/p&gt;
&lt;p&gt;The approach used for the nRF52840 dongle with&amp;nbsp;BOARD_HAS_NRF5_BOOTLOADER and FLASH_LOAD_OFFSET works in SDK 2.8.0 as well, so you can do the same for your custom board. I suspect that if you check the generated .config you are missing some of these configs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CONFIG_FLASH_LOAD_OFFSET=0x1000&lt;/li&gt;
&lt;li&gt;CONFIG_HAS_FLASH_LOAD_OFFSET=y&lt;/li&gt;
&lt;li&gt;CONFIG_BOARD_HAS_NRF5_BOOTLOADER=y&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Can you check if that is the case? If so, the next step is to look at your board fiels to understand why.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>