<?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>nRF52832 error directive wrong configuration when removing SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33521/nrf52832-error-directive-wrong-configuration-when-removing-spi</link><description>I&amp;#39;m using nRF52+SDK11.0.0+S132 . It currently has SPI, SPIS, TWIM, RTC. I want to remove SPI and I&amp;#39;m getting: ..\components\drivers_nrf\spi_master\nrf_drv_spi.c(56): error: #35: #error directive: &amp;quot;Wrong configuration.&amp;quot; when I modify nrf_drv_config.h </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Dec 2018 22:28:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33521/nrf52832-error-directive-wrong-configuration-when-removing-spi" /><item><title>RE: nRF52832 error directive wrong configuration when removing SPI</title><link>https://devzone.nordicsemi.com/thread/162568?ContentTypeID=1</link><pubDate>Wed, 19 Dec 2018 22:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d7f85d1-7692-451b-b886-4b5b32013ef5</guid><dc:creator>Tosa</dc:creator><description>&lt;p&gt;I&amp;#39;m closing this thread and opening a new one for the TWI/SPI issue since the answer on how to eliminate &amp;quot;&lt;span&gt;Wrong configuration&lt;/span&gt;&amp;quot; has been given.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 error directive wrong configuration when removing SPI</title><link>https://devzone.nordicsemi.com/thread/162399?ContentTypeID=1</link><pubDate>Wed, 19 Dec 2018 04:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d993c0e-eca8-4e17-ba60-1ec227e38fc4</guid><dc:creator>Tosa</dc:creator><description>&lt;p&gt;It seems that if I don&amp;#39;t initialize SPI (by commenting out nrf_drv_spi_init() or eliminating SPI altogether) then my FW is stuck in: while (twi_transfer(p_twi, &amp;amp;p_cb-&amp;gt;error, &amp;amp;p_cb-&amp;gt;bytes_transferred, (uint8_t *)p_data, length, no_stop))&lt;br /&gt; {} of&amp;nbsp;twi_tx_start_transfer() when calling my first I2C transaction. Any idea why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 error directive wrong configuration when removing SPI</title><link>https://devzone.nordicsemi.com/thread/161493?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 15:17:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c69752e3-8902-4d80-94aa-d641bf8f65f6</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;What do you mean by &amp;quot;still does not run properly&amp;quot;? Can you give me more details?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 error directive wrong configuration when removing SPI</title><link>https://devzone.nordicsemi.com/thread/161491?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 15:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26b499e6-fef4-41d5-b2ac-64cb0280380b</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;What do you mean by &amp;quot;still does not run properly? Can you give me some more details?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 error directive wrong configuration when removing SPI</title><link>https://devzone.nordicsemi.com/thread/160017?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 15:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9cb46ef-eec4-4eec-a0e9-92b52f0fe0b0</guid><dc:creator>Tosa</dc:creator><description>&lt;p&gt;To make my project work, I have the file&amp;nbsp;&lt;span&gt;nrf_drv_spi.c included&amp;nbsp;in the build and I call nrf_drv_spi_init() with dummy pins (0) for the SPI peripheral. If I comment out&amp;nbsp;nrf_drv_spi_init() but leave&amp;nbsp;nrf_drv_spi.c with&amp;nbsp;#define SPI0_ENABLED 1, my project builds but does not run properly. Similarly, if I remove&amp;nbsp;nrf_drv_spi.c (per your suggestion) with&amp;nbsp;#define SPI0_ENABLED 0, my&amp;nbsp;project&amp;nbsp;builds (I don&amp;#39;t get the &amp;quot;Wrong configuration&amp;quot;&amp;nbsp;error this time) but still does not run properly.&amp;nbsp;Please advise.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 error directive wrong configuration when removing SPI</title><link>https://devzone.nordicsemi.com/thread/129171?ContentTypeID=1</link><pubDate>Fri, 20 Apr 2018 14:11:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9139c781-f223-4da9-b0ee-9d4b6139d084</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you have a look at the error on line #35 in nrf_drv_spi.c, you can see that this will only trigger if SPI and SPIM are not in use. Maybe it will help to remove&amp;nbsp;nrf_drv_spi.c from your project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>