<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SPI communication in Raspberry Pi using CoDeSys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/39dd2e9fcc/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/39dd2e9fcc/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/39dd2e9fcc/</id><updated>2023-02-17T15:04:16.328000Z</updated><subtitle>Recent posts to SPI communication in Raspberry Pi using CoDeSys</subtitle><entry><title>SPI communication in Raspberry Pi using CoDeSys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/39dd2e9fcc/?limit=25#23e6" rel="alternate"/><published>2023-02-17T15:04:16.328000Z</published><updated>2023-02-17T15:04:16.328000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com8f1cab234c51d6d40caad476823f56cd95eee095</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;reduce SPI Maxspeed in the CODESYS config.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SPI communication in Raspberry Pi using CoDeSys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/39dd2e9fcc/?limit=25#121c/49ff" rel="alternate"/><published>2023-02-17T12:46:51.676000Z</published><updated>2023-02-17T12:46:51.676000Z</updated><author><name>deeksha</name><uri>https://forge.codesys.com/u/deeksha/</uri></author><id>https://forge.codesys.com751230593a8218fd9f28f2e99e6c6d56fa6c0c12</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SPI communication in Raspberry Pi using CoDeSys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/39dd2e9fcc/?limit=25#121c/88ad" rel="alternate"/><published>2023-02-17T12:46:48.725000Z</published><updated>2023-02-17T12:46:48.725000Z</updated><author><name>deeksha</name><uri>https://forge.codesys.com/u/deeksha/</uri></author><id>https://forge.codesys.com098e035e139c279c294b3d3b508a60e1d8412593</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SPI communication in Raspberry Pi using CoDeSys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/39dd2e9fcc/?limit=25#121c/d9ba" rel="alternate"/><published>2023-02-17T12:46:44.923000Z</published><updated>2023-02-17T12:46:44.923000Z</updated><author><name>deeksha</name><uri>https://forge.codesys.com/u/deeksha/</uri></author><id>https://forge.codesys.com9e83b9ead537436d0dfcf63f05f429a07a39e5fa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SPI communication in Raspberry Pi using CoDeSys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/39dd2e9fcc/?limit=25#121c" rel="alternate"/><published>2023-02-17T12:44:24.257000Z</published><updated>2023-02-17T12:44:24.257000Z</updated><author><name>DavidBo</name><uri>https://forge.codesys.com/u/davidbo/</uri></author><id>https://forge.codesys.com83caa614e2ded08c971f7fab363d0d7a02249d82</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Have you enabled SPI in Pi using raspi-config&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SPI communication in Raspberry Pi using CoDeSys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/39dd2e9fcc/?limit=25#6b1b" rel="alternate"/><published>2023-02-16T13:12:40.981000Z</published><updated>2023-02-16T13:12:40.981000Z</updated><author><name>deeksha</name><uri>https://forge.codesys.com/u/deeksha/</uri></author><id>https://forge.codesys.com240979e3c6c7a367b80ecc9023a1aca5cae11378</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using Raspberry pi in CoDeSys. I have connected Adruino to Raspberry pi through SPI pins where Adruino is sending data and Raspberry pi needs to receive that data which I am not able to get.&lt;br/&gt;
Can someone please help me in understanding how to receive data over Raspberry pi in CoDeSys? &lt;br/&gt;
I tried to use function:&lt;br/&gt;
spiMaster.transfer(TXBUFF, RXBUFF, Len, Delay, Freq) but didn't work. I don't understand what the issue could be. &lt;br/&gt;
I didn't find any description for the input arguments provided to above function. So, I declared these variables and used as input arguments. &lt;/p&gt;
&lt;p&gt;I am using Raspberry pi 4.&lt;br/&gt;
I have used pins on Raspberry pi for SPI connections:&lt;br/&gt;
MISO: GPIO 9&lt;br/&gt;
MOSI: GPIO 10&lt;br/&gt;
CLK: GPIO 11&lt;br/&gt;
Chip enable CE1: GPIO 7&lt;br/&gt;
Ground is common for both Raspberry pi and Adruino.&lt;/p&gt;
&lt;p&gt;I checked on Raspberry pi SPI pins too using oscilloscope, but it looks that Raspberry pi is not sending any data. &lt;br/&gt;
So, I suspect that the function I am using is not correct. &lt;br/&gt;
Anyone has any suggestion?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>