<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SPI data reception from Raspberry Pi in S32K</title>
    <link>https://community.nxp.com/t5/S32K/SPI-data-reception-from-Raspberry-Pi/m-p/1911420#M37815</link>
    <description>&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Unable to receive the data in Slave(S32K144) which is sent from Master(Raspberry Pi 3 Model b+).&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Steps Followed:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;1.) I have configured &lt;STRONG&gt;Raspberry Pi 3 Model b+ board as Master&lt;/STRONG&gt; and &lt;STRONG&gt;S32K144 board as Slave&lt;/STRONG&gt;(using S32 Design Studio) for the SPI data communication.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.) I have configured and verified the pins and peripherals for the SPI in both master and slave end is correct.&lt;/P&gt;&lt;P&gt;3.) I have checked that the data is transmitted from the SPI Master successfully.&lt;/P&gt;&lt;P&gt;4.) In the Slave end, I couldn't able to receive the data which is sent from Master.&amp;nbsp;&lt;/P&gt;&lt;P&gt;5.) So, by debugging I found that the "SpiSlave_Callback()" function is not triggered (in this function only, "vTaskNotifyGiveFromISR()" API is there to send task notifications). So, "ulTaskNotifyTake()" API is not receiving any task notifications.&lt;/P&gt;&lt;P&gt;6.) The following are the steps done before calling "SpiSlave_callback".&lt;/P&gt;&lt;P&gt;INT_SYS_EnableIRQGlobal();&lt;BR /&gt;INT_SYS_EnableIRQ(LPSPI0_IRQn);&lt;BR /&gt;INT_SYS_SetPriority(LPSPI0_IRQn,2);&lt;BR /&gt;lpspi_0_SlaveConfig0.callback = SpiSlave_callback; //Callback Function&lt;BR /&gt;lpspi_0_SlaveConfig0.callbackParam = NULL;&lt;/P&gt;&lt;P&gt;7.) So, It seems that Interrupt is not invoking the callback function.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Support Required:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;1.) To trigger the callback function in the Slave end.&lt;/P&gt;&lt;P&gt;2.) To receive the task notifications and process the data which is sent from the Master&lt;/P&gt;&lt;P&gt;3.) To establish the SPI communication between Master and Slave.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2024 14:09:14 GMT</pubDate>
    <dc:creator>Jeeva</dc:creator>
    <dc:date>2024-07-18T14:09:14Z</dc:date>
    <item>
      <title>SPI data reception from Raspberry Pi</title>
      <link>https://community.nxp.com/t5/S32K/SPI-data-reception-from-Raspberry-Pi/m-p/1911420#M37815</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Unable to receive the data in Slave(S32K144) which is sent from Master(Raspberry Pi 3 Model b+).&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Steps Followed:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;1.) I have configured &lt;STRONG&gt;Raspberry Pi 3 Model b+ board as Master&lt;/STRONG&gt; and &lt;STRONG&gt;S32K144 board as Slave&lt;/STRONG&gt;(using S32 Design Studio) for the SPI data communication.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.) I have configured and verified the pins and peripherals for the SPI in both master and slave end is correct.&lt;/P&gt;&lt;P&gt;3.) I have checked that the data is transmitted from the SPI Master successfully.&lt;/P&gt;&lt;P&gt;4.) In the Slave end, I couldn't able to receive the data which is sent from Master.&amp;nbsp;&lt;/P&gt;&lt;P&gt;5.) So, by debugging I found that the "SpiSlave_Callback()" function is not triggered (in this function only, "vTaskNotifyGiveFromISR()" API is there to send task notifications). So, "ulTaskNotifyTake()" API is not receiving any task notifications.&lt;/P&gt;&lt;P&gt;6.) The following are the steps done before calling "SpiSlave_callback".&lt;/P&gt;&lt;P&gt;INT_SYS_EnableIRQGlobal();&lt;BR /&gt;INT_SYS_EnableIRQ(LPSPI0_IRQn);&lt;BR /&gt;INT_SYS_SetPriority(LPSPI0_IRQn,2);&lt;BR /&gt;lpspi_0_SlaveConfig0.callback = SpiSlave_callback; //Callback Function&lt;BR /&gt;lpspi_0_SlaveConfig0.callbackParam = NULL;&lt;/P&gt;&lt;P&gt;7.) So, It seems that Interrupt is not invoking the callback function.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Support Required:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;1.) To trigger the callback function in the Slave end.&lt;/P&gt;&lt;P&gt;2.) To receive the task notifications and process the data which is sent from the Master&lt;/P&gt;&lt;P&gt;3.) To establish the SPI communication between Master and Slave.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 14:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-data-reception-from-Raspberry-Pi/m-p/1911420#M37815</guid>
      <dc:creator>Jeeva</dc:creator>
      <dc:date>2024-07-18T14:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: SPI data reception from Raspberry Pi</title>
      <link>https://community.nxp.com/t5/S32K/SPI-data-reception-from-Raspberry-Pi/m-p/1914747#M38050</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237124"&gt;@Jeeva&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Which drivers do you use?&lt;/P&gt;
&lt;P&gt;Can you share the project?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 07:06:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-data-reception-from-Raspberry-Pi/m-p/1914747#M38050</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-07-23T07:06:44Z</dc:date>
    </item>
  </channel>
</rss>

