<?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>Zigbee Light Switch example builds only once</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93693/zigbee-light-switch-example-builds-only-once</link><description>When trying to compile a zigbee light switch example for the nrf5340-cpu_app target using visual studio using the zigbee fota prj file, the application compiles only once. Any other attempts to re-build this application fail with a FLASH overflow error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Jan 2023 13:35:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93693/zigbee-light-switch-example-builds-only-once" /><item><title>RE: Zigbee Light Switch example builds only once</title><link>https://devzone.nordicsemi.com/thread/402964?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 13:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce2d2456-1584-4456-8b79-cdb1739c7f97</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve picked up this case while Edvin is out of office.&lt;/p&gt;
&lt;p&gt;This is an update to let you know that the query with the developers are still ongoing but in the meanwhile I was wondering if you had solved the issue since the last correspondence in this ticket?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Light Switch example builds only once</title><link>https://devzone.nordicsemi.com/thread/397362?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 10:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74ab3a70-0a94-476e-a250-42db790d328c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I just want to let you know that this is not forgotten. I am waiting for a reply from our Zigbee and NCS team. I will keep you posted.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Light Switch example builds only once</title><link>https://devzone.nordicsemi.com/thread/395813?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 13:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:527010c8-4cb4-4a78-8c49-86dd9d6eaf49</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I have not got the chance to look more into details on this yet. I found that when I built from the command line, the issue didn&amp;#39;t occur, and I discovered that it only occurs (from the command line) when I include the file nrf5340dk_nrf5340_cpuapp_fota.conf is included. I will try to look into why it fails. The main reason is that e.g.&amp;nbsp;&lt;span&gt;PM_MCUBOOT_PRIMARY_1_ID is not defined, but I am not sure where this is typically set. I will try to compare it to some other applications using DFU, (such as NCS\nrf\applications\machine_learning) that doesn&amp;#39;t have this error.&lt;/span&gt;&lt;/p&gt;
[quote user="i3pdmaguirre"]is USE_PARTITION_MANAGER being set?[/quote]
&lt;p&gt;As mentioned, I think it is being set in the CMakeLists.txt file from NCS\nrf\subsys\partition_manager\CMakeLists.txt.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sorry for the inconvenience.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;BR,&lt;br /&gt;Edvin&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Light Switch example builds only once</title><link>https://devzone.nordicsemi.com/thread/395391?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 16:55:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80edfa8e-de24-4bca-b225-930f9e43ad91</guid><dc:creator>i3pdmaguirre</dc:creator><description>&lt;p&gt;Where/who&amp;nbsp; is USE_PARTITION_MANAGER being set?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Light Switch example builds only once</title><link>https://devzone.nordicsemi.com/thread/395149?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 14:47:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdcc3bb1-fd5a-47c9-8aff-3105064b11cb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I see. I can replicate the issue as well. While I don&amp;#39;t know exactly why it happens yet, it has to do with the definition &amp;quot;USE_PARTITION_MANAGER&amp;quot; which is set when I do a pristine build, but it is not set when the build directory doesn&amp;#39;t exist. When this is defined, it includes the content of sysflash.h, which refers to PM_MCUBOOT_PRIMARY_1_ID, which isn&amp;#39;t defined.&lt;/p&gt;
&lt;p&gt;I believe it has to do with these lines:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# We are using partition manager if we are a child image or if we are
# the root image and the &amp;#39;partition_manager&amp;#39; target exists.
set(using_partition_manager
  $&amp;lt;OR:$&amp;lt;BOOL:${IMAGE_NAME}&amp;gt;,$&amp;lt;TARGET_EXISTS:partition_manager&amp;gt;&amp;gt;
  )
zephyr_compile_definitions(
  USE_PARTITION_MANAGER=${using_partition_manager}
  )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;from CMakeLists.txt in NCS\nrf\subsys\partition_manager\CMakeLists.txt&lt;/p&gt;
&lt;p&gt;I am not sure whether the issue is that the USE_PARTITION_MANAGER is being set wrongly (why it is set on a new build, but not a pristine build), or if the PM_MCUBOOT_PRIMARY_1_ID should be defined somewhere that is not included. I will have to look into it later. (Hopefully tomorrow).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Light Switch example builds only once</title><link>https://devzone.nordicsemi.com/thread/394976?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2022 16:46:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef36b891-0a03-40e4-836b-6573a1db6050</guid><dc:creator>i3pdmaguirre</dc:creator><description>&lt;p&gt;I noticed that changing the PRJ caused this issue to appear&lt;/p&gt;
&lt;p&gt;enabling/disabling PRJ values. i.e changing the image version to `CONFIG_MCUBOOT_IMAGE_VERSION=&amp;quot;1.2.4&amp;quot; for example&lt;/p&gt;
&lt;p&gt;Once I reverted all my changes to the example PRJ I tried simple forcing a pristine build was enough to cause this issue to appear&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Light Switch example builds only once</title><link>https://devzone.nordicsemi.com/thread/394927?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2022 13:38:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daf7cdef-a58d-432e-9895-093ea6c0c2e9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So I see that the original build succeeds, and so does the second (the one that just builds 4 files starting at line 389 in your build log).&amp;nbsp; What do you do between that build and the one after (starting at line 404)?&lt;/p&gt;
&lt;p&gt;What triggers it to do a pristine build? (It doesn&amp;#39;t use the flag &amp;quot;--pristine&amp;quot;, but something triggers it to build everything from scratch).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>