<?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>Not able to see log output in COM port for SPI.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38908/not-able-to-see-log-output-in-com-port-for-spi</link><description>Hello, 
 I am using NRF51 DK for developing an application. I tried running the default SPI example in the SDK 12.3 which uses the spi and spis example. The location of those examples are SDK -&amp;gt;examples -&amp;gt; peripheral -&amp;gt; spi &amp;amp; spis. When I run these examples</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Oct 2018 20:10:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38908/not-able-to-see-log-output-in-com-port-for-spi" /><item><title>RE: Not able to see log output in COM port for SPI.</title><link>https://devzone.nordicsemi.com/thread/151081?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 20:10:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a164bf5a-7591-4b32-ba3c-4975d18734ac</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You should not have to modify the SPIS example, the slaves does not care which device it is interfaced by.&lt;/p&gt;
&lt;p&gt;I have attached main.c file that show how you can interface 4 different slaves that is connected to the same SPI instace for SPI master example:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2e520da82d7b412180b9e1ab4a684e7a/main.c"&gt;devzone.nordicsemi.com/.../main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The slave SS pins should be connected to GPIO P0.12-P0.15.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to see log output in COM port for SPI.</title><link>https://devzone.nordicsemi.com/thread/151052?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 17:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf42dbc8-58aa-471d-9b1d-e930e32b2afc</guid><dc:creator>BeaconBLE</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am really sorry for the trouble, I am a beginner, if you could please help me with a gist of code changes that I have to do in the SDK 12.3 spi and spis example that would be great.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank You.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to see log output in COM port for SPI.</title><link>https://devzone.nordicsemi.com/thread/150896?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 08:13:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09366902-6879-4530-8da1-e5ab356a7f75</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Yes, no changes to the nrf_drv_spi files. You simply set and clear the SS pin in use with GPIO functions &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__gpio__hal.html#gadfd30c1e5321180f1e333cf5642058e8"&gt;&lt;span&gt;nrf_gpio_pin_set&lt;/span&gt;&lt;/a&gt;/&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__gpio__hal.html#ga5c671adfb6b44f32c9d99d3156aff2b1"&gt;clear&lt;/a&gt;(). Note that you have to setup the SS pins using&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__gpio__hal.html#ga5c6f584e6e01dd0c65bd1b9eee958cbb"&gt;nrf_gpio_cfg_output&lt;/a&gt;() first.&lt;/p&gt;
&lt;p&gt;The master is always the one initiating a transfer on the SPI bus. The slaves can not start transmitting by itself. You will have full control over which slave device is transferring in the master application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to see log output in COM port for SPI.</title><link>https://devzone.nordicsemi.com/thread/150797?ContentTypeID=1</link><pubDate>Fri, 28 Sep 2018 06:15:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b340090-eb6f-452f-9d94-bdcc942e3406</guid><dc:creator>BeaconBLE</dc:creator><description>&lt;p&gt;So for changing the SS pin manually do I not do the changes in the nrf_drv_spi.h and nrf_drv_spi.c file and what other changes do I have to do for it to work. Also, when 4 slaves are transmitting how do I manage the timing because they cannot transmit simultaneously right. Is there a way to know whether the other slave is currently using the SPI pin or not?&lt;/p&gt;
&lt;p&gt;Thank You.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to see log output in COM port for SPI.</title><link>https://devzone.nordicsemi.com/thread/150709?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 12:46:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ce423f7-d169-452b-a3d3-fd56d93270e2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Unless you are using the SD Card/FatFS library, I would recommend that you control SS pin manually, rather than modifying the driver as suggested in the link.&lt;/p&gt;
&lt;p&gt;You cannot transmitt data from more than one device at a time on a single bus, then you need to setup multiple SPI instances. nRF51 support two SPI master instances.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The simples solution would be to configure the transmitter as a SPI master device and the 4 others as SPI slave. You can then set SS pin manually for each device and transmitt/receive from that device. Then move to the next device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to see log output in COM port for SPI.</title><link>https://devzone.nordicsemi.com/thread/150645?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 09:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffc9fb41-501d-4b42-b8a2-83980b608197</guid><dc:creator>BeaconBLE</dc:creator><description>&lt;p&gt;Hello Jorgen,&lt;/p&gt;
&lt;p&gt;Thank you for your input. It helped me a lot. I am working on an application with 5 nRF51822 chips in one board, one of which is a transmitter and 4 of them are receivers(they receive the signal from a transmitter in a different board) which then send the received signal using SPI to the transmitter in the same board. So I saw your thread where you explained how to change the SS pin and send using SPI -&lt;a title="SPI" href="https://devzone.nordicsemi.com/f/nordic-q-a/23488/a-nrf52-function-mapping-to-nrf51#post-id-157948" rel="noopener noreferrer" target="_blank"&gt;SPI multiple SS pin thread&lt;/a&gt;&amp;nbsp; .&amp;nbsp;I need to transmit received signals from four different boards to a single board, so I wanted to know&amp;nbsp;if the four chips can send the received signal using SPI to the one chip simultaneously, will there be a collision or how will it work? Also, can I change the SS pin value from the slave side?&amp;nbsp;Basically, I am not sure about how I proceed with this setup if you could help me that would be great.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/My-setup.pptx"&gt;devzone.nordicsemi.com/.../My-setup.pptx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to see log output in COM port for SPI.</title><link>https://devzone.nordicsemi.com/thread/150461?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 11:48:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b13d4bf-f41b-4bea-8fda-b5347155ee78</guid><dc:creator>Hein</dc:creator><description>&lt;p&gt;My bad sorry, it was the SPI and TWI that I had issues with.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to see log output in COM port for SPI.</title><link>https://devzone.nordicsemi.com/thread/150459?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 11:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01ac65f1-c79f-4b2a-be50-2adf780380a3</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;By default, the logger module is not enabled in the examples. You need to set the following define in sdk_config.h:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRF_LOG_ENABLED 1&lt;/pre&gt;&lt;/p&gt;
[quote user="kernels"]Not sure about the 51, but in the 52 you can not run the SPI0 and UART0 at the same time, are they both configured for instance 0 ?[/quote]
&lt;p&gt;This is not correct, UART does not &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/memory.html?cp=2_1_0_7_3#topic"&gt;share instance&lt;/a&gt; with other serial devices. Only SPI/SPIM/SPIS/TWI/TWIM/TWIS share base address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to see log output in COM port for SPI.</title><link>https://devzone.nordicsemi.com/thread/150359?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 04:56:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31c2eb80-c00d-4b1b-bd56-fe1fb5966e74</guid><dc:creator>Hein</dc:creator><description>&lt;p&gt;Not sure about the 51, but in the 52 you can not run the SPI0 and UART0 at the same time, are they both configured for instance 0 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>