<?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>Memory model of the nRF5340: fully compliant with Armv8-m?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80887/memory-model-of-the-nrf5340-fully-compliant-with-armv8-m</link><description>Hello, 
 We&amp;#39;re implementing an application that makes use of C++ std::atomic variables and their associated memory-ordering semantics for inter-processor communication between the application and network cores of the nRF5340. 
 The Armv8-M Architecture</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Dec 2022 18:44:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80887/memory-model-of-the-nrf5340-fully-compliant-with-armv8-m" /><item><title>RE: Memory model of the nRF5340: fully compliant with Armv8-m?</title><link>https://devzone.nordicsemi.com/thread/401110?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2022 18:44:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d11cfa5-5765-4407-8296-007bfcbb3048</guid><dc:creator>hdiags</dc:creator><description>&lt;p&gt;Hi Simon, many thanks for your original answer. I wonder whether you know if Zephyr [atomic variables](&lt;a id="" href="https://docs.zephyrproject.org/3.0.0/reference/kernel/other/atomic.html"&gt;https://docs.zephyrproject.org/3.0.0/reference/kernel/other/atomic.html&lt;/a&gt;) or the&amp;nbsp;&lt;a style="font-family:inherit;" href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fgroup__nrf__atomic.html"&gt;Nordic Atomic Operations API&lt;/a&gt;&amp;nbsp;work for variables shared across both the network and application cores in the nrf5340?&lt;/p&gt;
&lt;p&gt;Many thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Colin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory model of the nRF5340: fully compliant with Armv8-m?</title><link>https://devzone.nordicsemi.com/thread/355809?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 12:29:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14f82571-cb22-4a93-8c29-e8a4361061a0</guid><dc:creator>hdiags</dc:creator><description>&lt;p&gt;Thanks Simon, I hadn&amp;#39;t realised that. Do you know regarding the behaviour with respect to the C _Atomic type? (&lt;a href="https://en.cppreference.com/w/c/language/atomic"&gt;https://en.cppreference.com/w/c/language/atomic&lt;/a&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory model of the nRF5340: fully compliant with Armv8-m?</title><link>https://devzone.nordicsemi.com/thread/335378?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 23:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0940170a-97eb-414a-91f4-acac3849d89e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Check out&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/31281"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/31281&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It does not seem like&amp;nbsp;&lt;span&gt;C++ atomics (std::atomic)&amp;nbsp;are supported in NCS/Zephyr at the moment.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>