<?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>Flash overflow when simple overlay is added</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95426/flash-overflow-when-simple-overlay-is-added</link><description>Hi, 
 I am developing a LWM2M/OT solution including mcuboot on the nRF52840 chip. The solution is working well on the nRF52840 DK, but when building it for our custom board I need to make a few adjustments to the devicetree. Just switching a few pins</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Jan 2023 07:57:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95426/flash-overflow-when-simple-overlay-is-added" /><item><title>RE: Flash overflow when simple overlay is added</title><link>https://devzone.nordicsemi.com/thread/403728?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 07:57:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b24dcdb4-ea41-4324-b7bf-82325a22bc59</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Erik,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Glad to hear that the issue was solved! Hope you have a wonderful day!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow when simple overlay is added</title><link>https://devzone.nordicsemi.com/thread/403690?ContentTypeID=1</link><pubDate>Sun, 08 Jan 2023 11:34:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f255d90-45f5-42d5-b835-2dcac7a94cf7</guid><dc:creator>Erik Hougaard</dc:creator><description>&lt;p&gt;Thanks H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;You are absolutely right, there was a&amp;nbsp;&lt;span&gt;boards/nrf52840dk_nrf52840.overlay file present. I have made sure to include that one too, and things work just great.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for the quick solution.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Erik&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow when simple overlay is added</title><link>https://devzone.nordicsemi.com/thread/403619?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 14:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0490d7b5-5fc6-4459-be02-788d1ba570cf</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The first scenario&amp;nbsp;looks to enable external flash for the secondary slot, while the second scenario will use internal flash (ie. ~500 kB per image).&lt;/p&gt;
&lt;p&gt;I highly suspect that you have a boards/nrf52840dk_nrf52840.overlay file present?&lt;/p&gt;
&lt;p&gt;If you need to load several .overlay files, you should either use list(APPEND DTC_OVERLAY_FILE file.overlay) in CMakeLists.txt or explicitly define all when calling cmake.&lt;/p&gt;
&lt;p&gt;See this thread for detailed info:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/27548#issuecomment-697313071"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/27548#issuecomment-697313071&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow when simple overlay is added</title><link>https://devzone.nordicsemi.com/thread/403598?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 13:35:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b237cf5-e47b-489d-b0c2-09841fe34af7</guid><dc:creator>Erik Hougaard</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No board change is made. I use the nrf52840dk_nrf52840 and only add one CMAKE argument: -DDTC_OVERLAY_FILE=custom.overlay&lt;/p&gt;
&lt;p&gt;These are the differences between the two .config files:&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/Udklip.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow when simple overlay is added</title><link>https://devzone.nordicsemi.com/thread/403573?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 12:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5b1e8bc-0575-4805-87af-34d779b8e5b2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]The solution is working well on the nRF52840 DK, but when building it for our custom board I need to make a few adjustments to the devicetree.[/quote]
&lt;p&gt;Does this also include a board change? Ie. from nrf52840dk_nrf52840 to my_custom_board_nrf52840 ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you share the default configuration, or the generated configuration diff between &amp;quot;nrf52840dk_nrf52840&amp;quot; and your custom board?&lt;/p&gt;
&lt;p&gt;The configuration file is in build-folder\zephyr\.config&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>