<?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>[ Nrf52840 spi ] strange data received in spis</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95564/nrf52840-spi-strange-data-received-in-spis</link><description>Hi, I tried to run peripheral spi / spis examples on Nrf52840 with sdk 17.1.0 
 However I had problems with receiving data from master. 
 I expected to get &amp;quot;Nordic&amp;quot; every 200ms, but buffer was fiiled with different data. 
 
 Buffer data is not totally</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Jan 2023 17:09:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95564/nrf52840-spi-strange-data-received-in-spis" /><item><title>RE: [ Nrf52840 spi ] strange data received in spis</title><link>https://devzone.nordicsemi.com/thread/404641?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 17:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c3b93f0-842b-4aea-8527-1bdb6de79b7d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you checked the receive buffer with a debugger, to see if the data is corrupted when received by SPIS, or if it is during the logging that the data gets corrupted? Do you log over UART or RTT?&lt;/p&gt;
&lt;p&gt;Did you check the SPI signals with a logic analyzer, to see if the data being sent from the master is correct?&lt;/p&gt;
&lt;p&gt;If you have bad connection between the master and slave, you might need to increase the drive strength of the pins by calling&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.9.0/hal/nrf_gpio.h#L524"&gt;nrf_gpio_cfg&lt;/a&gt;&lt;span&gt;() with drive parameter set to&amp;nbsp;(&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__gpio__hal.html#ggabb86c9557487ac1eda0cec28f258a725aae4d4424759f4afd546132ac8b2b22d1"&gt;NRF_GPIO_PIN_H0H1&lt;/a&gt;&lt;span&gt;) after spi_init.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>