<?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>SDK 15.1 nrfx_qspi.h wont compile under C++</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38207/sdk-15-1-nrfx_qspi-h-wont-compile-under-c</link><description>The gnu C++ compiler wont do non trivial assignments designated initialisers, but by simply reordering this will work, Its a bit annoying, 
 nrfx_qspi.h line 73 replace with the following...</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Oct 2019 11:57:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38207/sdk-15-1-nrfx_qspi-h-wont-compile-under-c" /><item><title>RE: SDK 15.1 nrfx_qspi.h wont compile under C++</title><link>https://devzone.nordicsemi.com/thread/216153?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 11:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e8cb785-6caa-4615-88c7-fffea27f1109</guid><dc:creator>Peter Kenyon</dc:creator><description>&lt;p&gt;fixed in sdk 16.0 and latest nrfx drivers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15.1 nrfx_qspi.h wont compile under C++</title><link>https://devzone.nordicsemi.com/thread/149836?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 12:34:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80e8e0c2-923b-4d16-8453-45d048cbb992</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you! We may choose to do some changes to the SDK in the future, for better compatibility with C++, based on your feedback.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15.1 nrfx_qspi.h wont compile under C++</title><link>https://devzone.nordicsemi.com/thread/149395?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 10:51:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e16f6011-8ad8-4418-876e-382f40004db1</guid><dc:creator>Peter Kenyon</dc:creator><description>&lt;div&gt;&lt;strong&gt;nrfx_qspi.h:&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;o rearrange the static initialisers in order of declaration&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;@@ -83,0 +84 @@ typedef struct&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; .irq_priority&amp;nbsp;&amp;nbsp; = (uint8_t)NRFX_QSPI_CONFIG_IRQ_PRIORITY,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;br /&gt;@@ -90,0 +92 @@ typedef struct&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .sck_freq&amp;nbsp;&amp;nbsp; = (nrf_qspi_frequency_t)NRFX_QSPI_CONFIG_FREQUENCY, \&lt;br /&gt;@@ -92 +93,0 @@ typedef struct&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .dpmen&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = false,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;br /&gt;@@ -94 +95 @@ typedef struct&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .sck_freq&amp;nbsp;&amp;nbsp; = (nrf_qspi_frequency_t)NRFX_QSPI_CONFIG_FREQUENCY, \&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .dpmen&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = false&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;br /&gt;@@ -96 +96,0 @@ typedef struct&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; .irq_priority&amp;nbsp;&amp;nbsp; = (uint8_t)NRFX_QSPI_CONFIG_IRQ_PRIORITY,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;nrf_pwr_mgmt.h:&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;o Add a C++ inclusion guard&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;@@ -55,5 +54,0 @@&lt;br /&gt;-#ifdef __cplusplus&lt;br /&gt;-extern &amp;quot;C&amp;quot; {&lt;br /&gt;-#endif&lt;br /&gt;-&lt;br /&gt;@@ -154,4 +148,0 @@ void nrf_pwr_mgmt_shutdown(nrf_pwr_mgmt_shutdown_t&lt;br /&gt;-#ifdef __cplusplus&lt;br /&gt;-}&lt;br /&gt;-#endif&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;app_util.h&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;o comment out the STATIC ASSERTs&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;@@ -206,2 +206,2 @@ enum&lt;br /&gt;-#define STATIC_ASSERT_SIMPLE(EXPR)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //_Static_assert(EXPR, &amp;quot;unspecified message&amp;quot;)&lt;br /&gt;-#define STATIC_ASSERT_MSG(EXPR, MSG)&amp;nbsp;&amp;nbsp;&amp;nbsp; //_Static_assert(EXPR, MSG)&lt;br /&gt;+#define STATIC_ASSERT_SIMPLE(EXPR)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _Static_assert(EXPR, &amp;quot;unspecified message&amp;quot;)&lt;br /&gt;+#define STATIC_ASSERT_MSG(EXPR, MSG)&amp;nbsp;&amp;nbsp;&amp;nbsp; _Static_assert(EXPR, MSG)&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15.1 nrfx_qspi.h wont compile under C++</title><link>https://devzone.nordicsemi.com/thread/149178?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 09:23:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ab51061-62dd-4cb1-8202-417a8f2bdfd9</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. What are the required changes, is there anything we should do in those files to facilitate C++?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15.1 nrfx_qspi.h wont compile under C++</title><link>https://devzone.nordicsemi.com/thread/149164?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 07:57:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:822631c1-d7a7-4113-abd8-aebaf4413318</guid><dc:creator>Peter Kenyon</dc:creator><description>&lt;p&gt;No problem I have to patch a few files to get C++ to work, ie&amp;nbsp;&lt;/p&gt;
&lt;p&gt;app_util.h,&lt;/p&gt;
&lt;p&gt;nrf_pwr_mgmt.h&lt;/p&gt;
&lt;p&gt;nrfx_qspi.h&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15.1 nrfx_qspi.h wont compile under C++</title><link>https://devzone.nordicsemi.com/thread/149093?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 15:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d957429-0d0c-43da-a93d-aadd0a784cdb</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately yes, we were made aware of this issue too late for including any patch for it in the v15.2 release.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15.1 nrfx_qspi.h wont compile under C++</title><link>https://devzone.nordicsemi.com/thread/149035?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 12:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:522b8f98-0bdc-4e70-9632-7562cbc4cc2e</guid><dc:creator>Peter Kenyon</dc:creator><description>&lt;p&gt;Also for 15.2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15.1 nrfx_qspi.h wont compile under C++</title><link>https://devzone.nordicsemi.com/thread/147788?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 11:51:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7616d850-59e9-4137-afaa-eb75c1c14c8b</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the clarification. I have registered the issue in our internal tracker. As you write this should be easy to fix, so hopefully it will not take too long.&lt;/p&gt;
&lt;p&gt;In the mean time you will have to do the modification manually.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15.1 nrfx_qspi.h wont compile under C++</title><link>https://devzone.nordicsemi.com/thread/147648?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 15:05:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c674af29-248a-4af1-8543-80065bc3e227</guid><dc:creator>Peter Kenyon</dc:creator><description>&lt;p&gt;Yes by rearranging the initialisers so that they appear in the order of declaration then the compiler can cope, The problem is in the order of the initialisers, so dead easy to fix&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15.1 nrfx_qspi.h wont compile under C++</title><link>https://devzone.nordicsemi.com/thread/147584?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 12:23:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e69cf6f3-af77-4f3e-b30c-8157c2212390</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the input.&lt;/p&gt;
&lt;p&gt;Does it fail even when __cplusplus is defined, so that the full header file is inside an extern &amp;quot;C&amp;quot; block?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>