<?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>Best practices for multiple module deployment</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76191/best-practices-for-multiple-module-deployment</link><description>Good afternoon. 
 
 We are engaged on a project that entails the simultaneous, independent development of two separate modules capable of interacting with the BLE stack. 
 
 Q1. Is there a best practices document that gives direction / options on how</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Jun 2021 12:20:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76191/best-practices-for-multiple-module-deployment" /><item><title>RE: Best practices for multiple module deployment</title><link>https://devzone.nordicsemi.com/thread/314695?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 12:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95b1ad47-c41d-4b62-a1b9-2848d49c017c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I understand you correctly the two modules you are talking about are software modules that you will run in parallel on the same nRF53 device?&lt;/p&gt;
&lt;p&gt;If so I don&amp;#39;t see any good way to develop these modules as separate applications with their own hex file, I believe you will have to include them as two separate libraries or source modules in the same project, and compile them together.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;All software libraries and examples for the nRF53 are based around the new &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/index.html"&gt;nRF Connect SDK&lt;/a&gt; platform (NCS).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NCS uses the Zephyr RTOS under the hood, which is an open source RTOS optimized for low power IoT applications.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Being an RTOS Zephyr supports multi threading, and provides various OS constructs for handling synchronization between different threads, such as mutexes, semaphores and FIFO&amp;#39;s.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For a full overview of the Zephyr OS features, please look at the &lt;a href="https://docs.zephyrproject.org/1.12.0/kernel/kernel.html"&gt;Zephyr kernel primer&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The simplest way to do this would probably be to just wrap all the BLE calls in a mutex, but with Zephyr you should have several options depending on the application requirements.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>