<?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>SPI instance 1 configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59438/spi-instance-1-configuration</link><description>Hi all, 
 I am using 2 SPI&amp;#39;s in my design. I enabled SPI0_ENABLED and SPI1_ENABLED in my sdk_config.h. 
 SPI0 works fine. But SPI1 MOSI pin always sends 0xFF. 
 My pin configuration is like below: 
 CS = PO_08 
 SCK = PO_04 
 MOSI = PO_06 
 MISO = PO_07</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Apr 2020 08:26:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59438/spi-instance-1-configuration" /><item><title>RE: SPI instance 1 configuration</title><link>https://devzone.nordicsemi.com/thread/242854?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 08:26:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91172dc3-d7ba-42b9-8d87-45c7a0461122</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Yes. You can control the CS pin manually from the application. Just use the&amp;nbsp;NRF_DRV_SPI_PIN_NOT_USED when you initialize the SPI, and then set the chip select pin manually.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI instance 1 configuration</title><link>https://devzone.nordicsemi.com/thread/242784?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 19:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7a6606a-e3c6-4130-9f4d-578e5c28076d</guid><dc:creator>Lakshmikanth Satyavolu</dc:creator><description>&lt;p&gt;Hi @Edvin,&lt;/p&gt;
&lt;p&gt;In that case, can I control Chip select from the application to write into the internal SPI RAM continuously with the data to be sent?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My application uses a&amp;nbsp;flash memory where I need to send 512&amp;nbsp;bytes data at a time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Lakshmi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI instance 1 configuration</title><link>https://devzone.nordicsemi.com/thread/242692?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 12:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83fe0c57-0cb3-49d1-b00b-bf848b9c0b37</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;The length of the buffer is a hardware limit. See &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/spim.html?cp=4_2_0_30_5_13#register.TXD.MAXCNT" rel="noopener noreferrer" target="_blank"&gt;TXT.MAXCNT&lt;/a&gt;. So if you want to send more data, you must separate it into chunks of 256 bytes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI instance 1 configuration</title><link>https://devzone.nordicsemi.com/thread/242677?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 11:47:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ab6ad07-d28d-45df-80e5-2091ca671d48</guid><dc:creator>Lakshmikanth Satyavolu</dc:creator><description>&lt;p&gt;@Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for helping. after&amp;nbsp;&lt;span&gt;NRF_LOG_ENABLED&amp;nbsp;, it started working. I am using ble_app_hrs project(pca10040) as reference. for my custom design.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Here is another thing I observed.&amp;nbsp;nrf_drv_spi_transfer API takes uint8_t as transfer length size. Which is restricting my writes and reads from memory to only 256 bytes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there any other API where I can send large number of bytes.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Lakshmikanth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI instance 1 configuration</title><link>https://devzone.nordicsemi.com/thread/241370?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 12:45:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d41c2068-cf04-477a-a660-997d821a57fa</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Do you use a DK? Do you use logging over UART in your project? Check if NRF_LOG_ENABLED is 1 and NRF_LOG_BACKEND_UART is 1. If so, your project probably use the P0.06 as the UART pin, so it can&amp;#39;t be used for SPI. Of not, can you please let me know what project you started out with?&lt;/p&gt;
&lt;p&gt;Does everything else look like its running correctly? Do you check the return values of your function calls? Do any of them return a non-zero value?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>