<?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>regarding the QSPI example merging with my application with other interruptions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90545/regarding-the-qspi-example-merging-with-my-application-with-other-interruptions</link><description>Hi Nordic, 
 I am using your QSPI example code and make it into functions for my application. The code could run if I block the rest part of my code and only run the QSPI part. But when I add the rest of the application code, the QSPI function is not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Aug 2022 12:29:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90545/regarding-the-qspi-example-merging-with-my-application-with-other-interruptions" /><item><title>RE: regarding the QSPI example merging with my application with other interruptions</title><link>https://devzone.nordicsemi.com/thread/379533?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2022 12:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd1c8083-7dec-4593-97db-abac32800814</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. Yes, we should have used __ALIGN(4) or changed the type to a uint32_t in the example code. Now there is always the risk that the linker may decide to place the array at an unaligned start address like what happened in your case.&lt;/p&gt;
&lt;p&gt;Also, as you experienced, it doesn&amp;#39;t help that the array size is a multiple of 4.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding the QSPI example merging with my application with other interruptions</title><link>https://devzone.nordicsemi.com/thread/379525?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2022 12:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f649067-74e5-451e-9757-b4966efb2596</guid><dc:creator>liuluan1984</dc:creator><description>&lt;p&gt;Thank you, Now it works fine with your suggested modification.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Strangely that the official example did not use the&lt;span&gt;&amp;nbsp;__ALIGN(4), and itself still run to be fine&lt;/span&gt;&amp;nbsp;. Also that&amp;nbsp;&lt;span&gt;QSPI_TEST_DATA_SIZE equals to 256, which equals the 64*4 bytes= 64 words, should theoretically&amp;nbsp;fine. Also in the QSPI official example(below&amp;nbsp;D:\nRF5_SDK_17.0.2_d674dde\examples\peripheral\qspi\pca10056\blank\ses ) not using the&amp;nbsp;__ALIGN(4).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding the QSPI example merging with my application with other interruptions</title><link>https://devzone.nordicsemi.com/thread/379484?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2022 09:58:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65f1a8fc-537b-421f-8a9a-154b3f0a65f1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please use &amp;#39;__ALIGN(4)&amp;#39; when defining the your tx buffer array to ensure it always starts at a word-aligned address as required by the QSPI peripheral. The write call will return with NRF_ERROR_INVALID_ADDR if the source address is not aligned to a word boundary. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Register description stating that source pointer must be word aligned&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1659347797906v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Defining the buffers with the ALIGN keyword&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;__ALIGN(4) static uint8_t m_buffer_tx[QSPI_TEST_DATA_SIZE]; &lt;br /&gt;__ALIGN(4) static uint8_t m_buffer_rx[QSPI_TEST_DATA_SIZE];&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>