<?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>Using MCUboot causing issues with zero latency IRQs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106533/using-mcuboot-causing-issues-with-zero-latency-irqs</link><description>I am trying to use mcuboot alongside zero latency interrupts (ZLI), but I am finding that the two are not compatible. If I add CONFIG_BOOTLOADER_MCUBOOT, there is a very significant increase in latency on my configured GPIO interrupts. I can add more</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Dec 2023 22:23:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106533/using-mcuboot-causing-issues-with-zero-latency-irqs" /><item><title>RE: Using MCUboot causing issues with zero latency IRQs</title><link>https://devzone.nordicsemi.com/thread/460925?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 22:23:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c5cd79e-bb04-413a-a6e9-681ac5e6cd95</guid><dc:creator>jim-cat</dc:creator><description>&lt;p&gt;I found the issue, thanks for your support.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The mcuboot partition was causing issues with the&amp;nbsp;LITTLEFS partition on the internal flash. I created a pm_static.yml and&amp;nbsp;set CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y to move the LITTLEFS partition to my external flash. After that, my issues with interrupts were resolved.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using MCUboot causing issues with zero latency IRQs</title><link>https://devzone.nordicsemi.com/thread/460603?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 14:52:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bfc48ae-a4aa-4e61-a8b3-46a5b7d607ba</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve had a look at the diff but I were not able to pinpoint what could cause ZLIRQs to be overwritten by config_mcuboot=y so I will have to ask the bootloader team for some input. But as you state, the isr_tables are different so there must be something that overwrites the ZLI configurations.&lt;/p&gt;
&lt;p&gt;I will reach out to you again next week when I know some more, and in the meanwhile let me know if you&amp;#39;re able to identify what overwrites the configuration&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: Using MCUboot causing issues with zero latency IRQs</title><link>https://devzone.nordicsemi.com/thread/460217?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 19:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f94d688-84f8-4745-9591-dcfae8af7a7e</guid><dc:creator>jim-cat</dc:creator><description>&lt;p&gt;Hello and thank you for your help. I took a look at the differences and noticed that the generated &lt;em&gt;isr_tables.c&lt;/em&gt; files were&amp;nbsp;different.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the device tree flash setup (1MB internal flash).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;amp;flash0 {&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; partitions {&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compatible = &amp;quot;fixed-partitions&amp;quot;;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #address-cells = &amp;lt;1&amp;gt;;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #size-cells = &amp;lt;1&amp;gt;;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boot_partition: partition@0 {&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label = &amp;quot;mcuboot&amp;quot;;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;0x0 0xc000&amp;gt;;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; slot0_partition: partition@c000 {&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label = &amp;quot;image-0&amp;quot;;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;0xc000 0x77000&amp;gt;;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; slot1_partition: partition@83000 {&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label = &amp;quot;image-1&amp;quot;;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;0x83000 0x77000&amp;gt;;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; };&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;};&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;Diff of the build/zephyr/.config&amp;nbsp;files with and without mcuboot enabled:&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/diff.html"&gt;/cfs-file/__key/communityserver-discussions-components-files/4/diff.html&lt;/a&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;&lt;/em&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;build/zephyr/.config (without mcuboot):&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/config_5F00_without_5F00_mcuboot.txt"&gt;devzone.nordicsemi.com/.../config_5F00_without_5F00_mcuboot.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;build/zephyr/.config (with mcuboot):&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/config_5F00_mcuboot.txt"&gt;devzone.nordicsemi.com/.../config_5F00_mcuboot.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using MCUboot causing issues with zero latency IRQs</title><link>https://devzone.nordicsemi.com/thread/459922?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 12:46:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85ca4979-1ced-40b5-9595-b53491a5e0de</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you compare your .config from build/zephyr with and without CONFIG_BOOTLOADER_MCUBOOT=y and spot any differences? My thoughts are that there might be something that overwrites some of your ZLI configurations that may lead to the increased latency.&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></channel></rss>