<?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>Is there a sample code for nRF52 SPI master without Soft device ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14339/is-there-a-sample-code-for-nrf52-spi-master-without-soft-device</link><description>I am trying to develop a simple SPI master for a custom nRF52832 uC, but I can&amp;#39;t find anny sort of sample codes that don&amp;#39;t use Soft devices for this task. I need the code to be simple, so no need for SD based codes. Is it possible or is the nordic SPI</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Feb 2018 08:58:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14339/is-there-a-sample-code-for-nrf52-spi-master-without-soft-device" /><item><title>RE: Is there a sample code for nRF52 SPI master without Soft device ?</title><link>https://devzone.nordicsemi.com/thread/120520?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 08:58:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dde5d66f-bb3f-45ca-8995-4656aef8365b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think you are better off creating a new thread on this one. Please describe your problem in detail and tell us what SDK you are using. This thread is 2 years old and there are ~5 generations of SDKs released since then.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a sample code for nRF52 SPI master without Soft device ?</title><link>https://devzone.nordicsemi.com/thread/120494?ContentTypeID=1</link><pubDate>Sun, 11 Feb 2018 16:46:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70720b94-6154-4736-b0a3-fa48debdc380</guid><dc:creator>masloooo</dc:creator><description>&lt;p&gt;hi mhaggag&lt;/p&gt;
&lt;p&gt;I seem to came across the same problem you did. And did you figure it out? How to solve the &amp;quot;wrong configuration&amp;quot;error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a sample code for nRF52 SPI master without Soft device ?</title><link>https://devzone.nordicsemi.com/thread/54763?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2016 17:54:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38e97fef-ef9c-4f10-9c17-a520f293559a</guid><dc:creator>mhaggag</dc:creator><description>&lt;p&gt;Hello Martrin,&lt;/p&gt;
&lt;p&gt;I tried to initialize and send packets using the SPIM0 peripheral using the nrf_spi &amp;amp; the nrf_spim0 environment config files and following the specification described in the product specification online, but with all my efforts I am unable to disable the other peripherals shared with the SPIM0 like the TWIM0, SPIS0 ... etc&lt;/p&gt;
&lt;p&gt;How can I disable the other shared peripherals ? I tried setting their enable to 0 but that didn&amp;#39;t work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a sample code for nRF52 SPI master without Soft device ?</title><link>https://devzone.nordicsemi.com/thread/54762?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 16:17:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:520dc13c-6dfc-481c-8c79-f72e11c06a83</guid><dc:creator>mhaggag</dc:creator><description>&lt;p&gt;I am unable to create a project from scratch with the spi drivers and the necessary files. I tried to create a new project and added the nrf_drv_spi driver and all the associated driver and config files to the project run-time environment, but I still got those errors for just compiling&lt;/p&gt;
&lt;p&gt;Rebuild target &amp;#39;Target 1&amp;#39;
compiling main.c...
assembling arm_startup_nrf52.s...
compiling system_nrf52.c...
compiling nrf_drv_common.c...
compiling nrf_delay.c...
C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.0.0-Beta4\CMSIS\Include\core_cm4.h(86): warning:  #47-D: incompatible redefinition of macro &amp;quot;__WEAK&amp;quot; (declared at line 47 of &amp;quot;C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.6.1\Device\Include\compiler_abstraction.h&amp;quot;)
#define __WEAK                    &lt;strong&gt;attribute&lt;/strong&gt;((weak))
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\delay\nrf_delay.c: 1 warning, 0 errors
compiling nrf_drv_spi.c...
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\spi_master\nrf_drv_spi.c(56): error:  #35: #error directive: &amp;quot;Wrong configuration.&amp;quot;
#error &amp;quot;Wrong configuration.&amp;quot;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\spi_master\nrf_drv_spi.c: 0 warnings, 1 error
compiling app_error.c...
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(53): error:  #29: expected an expression
.line_num    = line_num,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(54): error:  #29: expected an expression
.p_file_name = p_file_name,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(55): error:  #29: expected an expression
.err_code    = error_code,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(67): error:  #29: expected an expression
.line_num    = 0,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(68): error:  #29: expected an expression
.p_file_name = NULL,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(69): error:  #29: expected an expression
.err_code    = error_code,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c: 0 warnings, 6 errors
compiling nrf_assert.c...
&amp;quot;.\Objects\trial_3.axf&amp;quot; - 7 Error(s), 1 Warning(s).
Target not created.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a sample code for nRF52 SPI master without Soft device ?</title><link>https://devzone.nordicsemi.com/thread/54760?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 16:17:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:344e83b7-008f-4d08-a0fb-2fc14848b202</guid><dc:creator>mhaggag</dc:creator><description>&lt;p&gt;I am unable to create a project from scratch with the spi drivers and the necessary files. I tried to create a new project and added the nrf_drv_spi driver and all the associated driver and config files to the project run-time environment, but I still got those errors for just compiling&lt;/p&gt;
&lt;p&gt;Rebuild target &amp;#39;Target 1&amp;#39;
compiling main.c...
assembling arm_startup_nrf52.s...
compiling system_nrf52.c...
compiling nrf_drv_common.c...
compiling nrf_delay.c...
C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.0.0-Beta4\CMSIS\Include\core_cm4.h(86): warning:  #47-D: incompatible redefinition of macro &amp;quot;__WEAK&amp;quot; (declared at line 47 of &amp;quot;C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.6.1\Device\Include\compiler_abstraction.h&amp;quot;)
#define __WEAK                    &lt;strong&gt;attribute&lt;/strong&gt;((weak))
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\delay\nrf_delay.c: 1 warning, 0 errors
compiling nrf_drv_spi.c...
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\spi_master\nrf_drv_spi.c(56): error:  #35: #error directive: &amp;quot;Wrong configuration.&amp;quot;
#error &amp;quot;Wrong configuration.&amp;quot;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\spi_master\nrf_drv_spi.c: 0 warnings, 1 error
compiling app_error.c...
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(53): error:  #29: expected an expression
.line_num    = line_num,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(54): error:  #29: expected an expression
.p_file_name = p_file_name,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(55): error:  #29: expected an expression
.err_code    = error_code,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(67): error:  #29: expected an expression
.line_num    = 0,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(68): error:  #29: expected an expression
.p_file_name = NULL,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(69): error:  #29: expected an expression
.err_code    = error_code,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c: 0 warnings, 6 errors
compiling nrf_assert.c...
&amp;quot;.\Objects\trial_3.axf&amp;quot; - 7 Error(s), 1 Warning(s).
Target not created.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a sample code for nRF52 SPI master without Soft device ?</title><link>https://devzone.nordicsemi.com/thread/54761?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 07:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc8d8069-72b1-42e7-9509-92d575bb54e6</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;In &lt;a href="http://developer.nordicsemi.com/nRF5_SDK/"&gt;SDK 11&lt;/a&gt; there are two examples, &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/spi_slave_example.html?cp=5_0_0_4_5_26"&gt;SPIS&lt;/a&gt; and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/spi_master_example.html?cp=5_0_0_4_5_25"&gt;SPI&lt;/a&gt;, located in &amp;quot;SDK_11_folder\examples\peripheral&amp;quot;. These examples show how to use SPI slave and master using the SPI(S) drivers without using the SD. It is as RK says though, it doesn&amp;#39;t really matter if you use the SD or not other than that things might be a little clearer without thousands of lines of BLE stuff in the way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a sample code for nRF52 SPI master without Soft device ?</title><link>https://devzone.nordicsemi.com/thread/54759?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 00:32:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f7df85f-bf67-4055-a000-bf1410ac270a</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;The SPI driver code is independent of the softdevice. You can just take the code and use it without a softdevice and it will work fine. All the Nordic drivers are standalone and work with or without softdevices.&lt;/p&gt;
&lt;p&gt;If there are any places which use any sd_* functions at all, eg for configuring interrupts etc, there are a few files in the SDK with &amp;#39;nosd&amp;#39; in their names which just provide trivial c implementations of those functions for simple source compatibility .. or you can just replace them with direct NVIC calls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>