<?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>Having issues adding drivers to a new project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19267/having-issues-adding-drivers-to-a-new-project</link><description>I am trying to add the spi and twi drivers to the ble_app_template project, but I keep running into errors. I am using the SDK 12.2.0. How are we supposed to go about adding all of the files we need to get these drivers working on a new project?
I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Jan 2017 15:52:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19267/having-issues-adding-drivers-to-a-new-project" /><item><title>RE: Having issues adding drivers to a new project</title><link>https://devzone.nordicsemi.com/thread/74657?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 15:52:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09a0dfae-3a7c-4b3d-96fa-c01af91b9622</guid><dc:creator>Cole</dc:creator><description>&lt;p&gt;thanks, I was looking for the nrf_drv_config.h file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having issues adding drivers to a new project</title><link>https://devzone.nordicsemi.com/thread/74660?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 11:38:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd83f4a0-d463-47db-95a7-76ec225a08ac</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;This was meant more as a general clarification for the user. You are correct that the BLE examples now contain paths to all modules, but this is not the case for all non-BLE examples (peripheral/nfc/proprietary_rf, etc.) in the current SDK (12.2.0).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having issues adding drivers to a new project</title><link>https://devzone.nordicsemi.com/thread/74659?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 10:35:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e32bbded-9977-42df-a6fd-5e775b2d1315</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Jørgen&lt;/p&gt;
&lt;p&gt;Re: Item 3
I&amp;#39;ve found that the example Keil projects and also the gcc makefile normally contain include paths to virtually everything, even if its not needed in the specific example&lt;/p&gt;
&lt;p&gt;In this case the ble_app_template (in SDK 12.1 and 12.2 ) already contains the paths to the SPIM and also TWI driver folders in the include paths&lt;/p&gt;
&lt;p&gt;But the user has to add includes for those headers in any file which uses SPIM (or TWI), i.e this could be in main.c or any other source file which use SPIM or TWI&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having issues adding drivers to a new project</title><link>https://devzone.nordicsemi.com/thread/74658?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 09:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:215e5e1c-47e6-40c7-8aae-1d312bdd45c0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are four things you have to add/verify when adding modules to a Keil project:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add the source files (.c) for the module to groups in Keil.&lt;/li&gt;
&lt;li&gt;Include the header file (.h) in the source file where the module is used.&lt;/li&gt;
&lt;li&gt;Add the path to the header file to the include paths in C/C++ project options.&lt;/li&gt;
&lt;li&gt;Enable the module in &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/sdk_config.html?cp=4_0_1_1_6"&gt;SDK configuration header&lt;/a&gt; file. If you cannot find the settings for the desired module in the &lt;em&gt;sdk_config.h&lt;/em&gt; file for your project, check in ble_app_template project &lt;em&gt;sdk_config.h&lt;/em&gt; file, as this include all modules in the SDK.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Step 1-3 is described in more details in section &lt;strong&gt;Add required files and includes&lt;/strong&gt; of the &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;Application Timer Tutorial&lt;/a&gt;. All steps are shown in below image:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8306.include_5F00_files_5F00_keil.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having issues adding drivers to a new project</title><link>https://devzone.nordicsemi.com/thread/74656?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 07:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b96dff3-a868-4d28-9af4-3d1428c9b56b</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Your most likely cause of errors is that you have not enabled SPI and TWI in sdk_config.h&lt;/p&gt;
&lt;p&gt;Unless you enable those modules in that file, the functions won&amp;#39;t get compiled and you will get loads of errors.&lt;/p&gt;
&lt;p&gt;I assume you are using an IDE like Keil, or IAR in which case it will handle adding the spi and twi c files to the build list if you added them to the project&lt;/p&gt;
&lt;p&gt;If you are using gcc / makefile, you&amp;#39;d need to manually add those files to the makefile&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>