<?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>Zephyr/mcuboot QSPI driver buffer alignment</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71227/zephyr-mcuboot-qspi-driver-buffer-alignment</link><description>We ran into an issue when trying to use mcuboot on nRF53 with an external QSPI flash. In hal_nordic/nrfx/drivers/src/nrfx_qspi.c, the function nrfx_qspi_write has the following check: But in sdk-zephyr/drivers/flash/nrf_qspi_nor.c, the function qspi_nor_write</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Sep 2021 06:42:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71227/zephyr-mcuboot-qspi-driver-buffer-alignment" /><item><title>RE: Zephyr/mcuboot QSPI driver buffer alignment</title><link>https://devzone.nordicsemi.com/thread/327523?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 06:42:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e32a0508-64c6-44f9-8aa0-04431ee783dd</guid><dc:creator>Stephan Walter</dc:creator><description>&lt;p&gt;Looks like the alignment issue was fixed in this commit: &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/commit/a448efb07f139d076abeb2a2ba645421edbabd25"&gt;https://github.com/nrfconnect/sdk-mcuboot/commit/a448efb07f139d076abeb2a2ba645421edbabd25&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pl-c1"&gt;boot_validated_swap_type&lt;/span&gt; still can&amp;#39;t handle a secondary slot being in external flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr/mcuboot QSPI driver buffer alignment</title><link>https://devzone.nordicsemi.com/thread/301968?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 15:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54d56da3-8f7c-454d-84a9-121640cba6aa</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I got&amp;nbsp;in contact with someone internally that will look into this. I&amp;#39;ll keep you updated.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr/mcuboot QSPI driver buffer alignment</title><link>https://devzone.nordicsemi.com/thread/301596?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 08:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18728580-3e3f-41ac-a12d-e63f4f28fe28</guid><dc:creator>jm_laird</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Has this issue been fixed now?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Jamie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr/mcuboot QSPI driver buffer alignment</title><link>https://devzone.nordicsemi.com/thread/293800?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 14:28:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:354c32df-c746-49a6-80f8-9715a361e814</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I created an internal ticket. I&amp;#39;ll keep you updated.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr/mcuboot QSPI driver buffer alignment</title><link>https://devzone.nordicsemi.com/thread/293674?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 07:07:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:999984ad-93bb-4a62-9e5f-fe7458032332</guid><dc:creator>Stephan Walter</dc:creator><description>&lt;p&gt;Hi Simon,&lt;br /&gt;I don&amp;#39;t know what the proper fix for the alignment would be, the CMakeLists addition is just a hack in my view. I also have not looked into mcuboot thourougly to be able to fix the issue with reading the secondary slot.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;--Stephan Walter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr/mcuboot QSPI driver buffer alignment</title><link>https://devzone.nordicsemi.com/thread/293620?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 16:59:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4234270e-8b72-4a41-a516-bafb8585d4a0</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Would you be able to make a pull request:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57409/process-for-contributing-to-nrf-connect-sdk"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/57409/process-for-contributing-to-nrf-connect-sdk&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;If not, please tell me and I&amp;#39;ll do it/make an internal ticket.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr/mcuboot QSPI driver buffer alignment</title><link>https://devzone.nordicsemi.com/thread/292668?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2021 12:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f93706b-a653-404e-a08a-b99af2f38f09</guid><dc:creator>Stephan Walter</dc:creator><description>&lt;p&gt;There seems to be another problem with mcuboot when used with an external flash on nRF53:&lt;/p&gt;
&lt;p&gt;An upgrade of the network core fails, because the image will overwrite the application core flash.&lt;/p&gt;
&lt;p&gt;It seems that the determination of reset_addr in the function boot_validated_swap_type fails, but I&amp;#39;m still investigating this.&lt;/p&gt;
&lt;p&gt;Edit: looks like the code introduced in &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/commit/84cc24d4795540331fe62a435e4cf9365fbb736a"&gt;https://github.com/nrfconnect/sdk-mcuboot/commit/84cc24d4795540331fe62a435e4cf9365fbb736a&lt;/a&gt; assumes that the secondary slot is in internal flash and does not contain an encrypted image.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr/mcuboot QSPI driver buffer alignment</title><link>https://devzone.nordicsemi.com/thread/292658?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2021 11:42:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81a2ad42-cadb-4271-9b02-4b6df98a1b99</guid><dc:creator>Stephan Walter</dc:creator><description>&lt;p&gt;As a workaround, the following can be added to the main CMakeLists.txt:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;file(APPEND &amp;quot;${CMAKE_CURRENT_BINARY_DIR}/mcuboot/zephyr/include/generated/snippets-sections.ld&amp;quot; &amp;quot;bss : SUBALIGN(4) {}&amp;quot;)&lt;/pre&gt;This will force 4-byte alignment for all uninitialized variables in the mcuboot image.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>