<?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>Adding a new sdk module is too hard.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75675/adding-a-new-sdk-module-is-too-hard</link><description>Isn&amp;#39;t there an easier way to use the SDK? For example, to use pwm, you need to change nrf_pwm_enable to 1 and nrfx_pwm_enable, nrfx_pwm0_enable, load_mode, step_mode, base_clock, and so on. Not only that, you have to add the pwm driver file to the project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 May 2021 07:41:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75675/adding-a-new-sdk-module-is-too-hard" /><item><title>RE: Adding a new sdk module is too hard.</title><link>https://devzone.nordicsemi.com/thread/312287?ContentTypeID=1</link><pubDate>Fri, 28 May 2021 07:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df99b92c-ad82-4e90-af5b-c2d6917393b6</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As mentioned by Hugh this is familiar complaint, and is also discussed in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35590/how-to-add-an-nrf5-sdk-library-to-an-existing-project"&gt;this case&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It was reported internally back then, but improving this&amp;nbsp;in the nRF5 SDK was never given priority, in part because of the large amount of work required to make an architectural change like this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These days we are&amp;nbsp;migrating more and more focus&amp;nbsp;to the Zephyr based NCS platform (&lt;a href="https://www.nordicsemi.com/Software-and-tools/Software/nRF-Connect-SDK"&gt;nRF Connect SDK&lt;/a&gt;), which has a much stronger configuration system than the nRF5 SDK, but since the build system and most of the software libraries differ it is not straight forward to migrate code from the nRF5 SDK to NCS.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Several software features (such as support for Bluetooth 5.2) and many hardware devices (nRF53 series or nRF91 series for instance) will only be supported by NCS, and if you want to leverage any of these then migrating to NCS is necessary.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Back to the nRF5 SDK, my own basic method for adding peripheral libraries to an SDK project is to open the&amp;nbsp;example project side by side, and try to merge all the required code and configuration from the peripheral example into my own example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I start by just copying the peripheral code from main.c into my own, which will lead to various build errors, and then I need to handle the errors one by one.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Compilation errors typically arise from missing include directories and missing configuration parameters in sdk_config.h&lt;/p&gt;
&lt;p&gt;Linker errors arise from missing source files, and drivers not being enabled in sdk_config.h&lt;/p&gt;
&lt;p&gt;If you are using BLE you should definitely start out with one of the BLE examples, rather than merge BLE from another example, as adding all the libraries used by the BLE stack is very time consuming.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are still struggling to merge the examples please let me know which examples you are trying to merge, and I will try to do it myself and send you a diff.&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><item><title>RE: Adding a new sdk module is too hard.</title><link>https://devzone.nordicsemi.com/thread/311928?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 01:57:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26d41ccb-ee5f-4d0c-976d-dc85f4b7b1aa</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;We all struggle with this &amp;lt;sigh&amp;gt; Maybe check out some other posts&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60127/compare-sdk_config-files"&gt;compare-sdk_config-files&lt;/a&gt;&amp;nbsp;or (even more scary) switch to zephyr projects ;-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>