<?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>S32KのトピックImplementing Non-SDK example in SDK LPSPI (S32K144_Project_LPSPI --&amp;gt; SDK_S32K144_Project_LPSPI)</title>
    <link>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1414315#M14020</link>
    <description>&lt;P&gt;Hi team&lt;/P&gt;&lt;P&gt;As stated in the subject , Initially I explored SPI communication with sample example code "S32K144_Project_LPSPI" , where SPI communication is established between microcontroller &amp;amp; UJA1169TK\F&lt;/P&gt;&lt;P&gt;So now to get familiar with SPI SDK , I tried implementing the same with the help of SDK( PFA processor expert)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once after generating processor expert code , I used&amp;nbsp;LPSPI_DRV_MasterTransferBlocking API to send &amp;amp; receive data through SPI&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint8_t masterDataSend[2]={0xFD,0x00};&lt;BR /&gt;uint8_t masterDataReceive[2];&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,&lt;BR /&gt;g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;BR /&gt;PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;BR /&gt;LPSPI_DRV_MasterInit(LPSPICOM1,&amp;amp;lpspiCom1State,&amp;amp;lpspiCom1_MasterConfig0);&lt;/P&gt;&lt;P&gt;LPSPI_DRV_MasterTransferBlocking(LPSPICOM1,&amp;amp;masterDataSend[0],&amp;amp;masterDataReceive[0],2U,10U);&lt;/P&gt;&lt;P&gt;So basically I was expecting value 0xFD &amp;amp; 0x EF in&amp;nbsp;masterDataReceive[0] and&amp;nbsp;masterDataReceive[1] respectively , but I'm receiving zero in&amp;nbsp;masterDataReceive[0] &amp;amp; [1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To check whether the selected configuration is correct , I used normal non-sdk code to verify processor expert configuration ( Shown below)&lt;/P&gt;&lt;P&gt;uint16_t LPSPI1_16bits_read;&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,&lt;BR /&gt;g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;BR /&gt;PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;BR /&gt;LPSPI_DRV_MasterInit(LPSPICOM1,&amp;amp;lpspiCom1State,&amp;amp;lpspiCom1_MasterConfig0);&lt;/P&gt;&lt;P&gt;while((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_TDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_TDF_SHIFT==0);&lt;BR /&gt;&amp;nbsp;/* Wait for Tx FIFO available */&lt;BR /&gt;&amp;nbsp;LPSPI1-&amp;gt;TDR = 0xFD00; /* Transmit data */&lt;BR /&gt;&amp;nbsp;LPSPI1-&amp;gt;SR |= LPSPI_SR_TDF_MASK; /* Clear TDF flag*/&lt;BR /&gt;&amp;nbsp;while((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_RDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_RDF_SHIFT==0);&lt;BR /&gt;&amp;nbsp;/* Wait at least one RxFIFO entry */&lt;BR /&gt;&amp;nbsp;LPSPI1_16bits_read= LPSPI1-&amp;gt;RDR; /* Read received data */&lt;BR /&gt;&amp;nbsp;LPSPI1-&amp;gt;SR |= LPSPI_SR_RDF_MASK; /* Clear RDF flag*/&lt;/P&gt;&lt;P&gt;With the above code , I could see 0xFDEF in&amp;nbsp;LPSPI1_16bits_read variable , from that I could conclude that there is no issue with processor expert configuration&lt;/P&gt;&lt;P&gt;I'm suspecting I might have sent wrong paramters for&amp;nbsp;LPSPI_DRV_MasterTransferBlocking API , Please let me know if something is wrong&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 09:18:49 GMT</pubDate>
    <dc:creator>KARTHKSARODE</dc:creator>
    <dc:date>2022-02-16T09:18:49Z</dc:date>
    <item>
      <title>Implementing Non-SDK example in SDK LPSPI (S32K144_Project_LPSPI --&gt; SDK_S32K144_Project_LPSPI)</title>
      <link>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1414315#M14020</link>
      <description>&lt;P&gt;Hi team&lt;/P&gt;&lt;P&gt;As stated in the subject , Initially I explored SPI communication with sample example code "S32K144_Project_LPSPI" , where SPI communication is established between microcontroller &amp;amp; UJA1169TK\F&lt;/P&gt;&lt;P&gt;So now to get familiar with SPI SDK , I tried implementing the same with the help of SDK( PFA processor expert)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once after generating processor expert code , I used&amp;nbsp;LPSPI_DRV_MasterTransferBlocking API to send &amp;amp; receive data through SPI&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint8_t masterDataSend[2]={0xFD,0x00};&lt;BR /&gt;uint8_t masterDataReceive[2];&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,&lt;BR /&gt;g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;BR /&gt;PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;BR /&gt;LPSPI_DRV_MasterInit(LPSPICOM1,&amp;amp;lpspiCom1State,&amp;amp;lpspiCom1_MasterConfig0);&lt;/P&gt;&lt;P&gt;LPSPI_DRV_MasterTransferBlocking(LPSPICOM1,&amp;amp;masterDataSend[0],&amp;amp;masterDataReceive[0],2U,10U);&lt;/P&gt;&lt;P&gt;So basically I was expecting value 0xFD &amp;amp; 0x EF in&amp;nbsp;masterDataReceive[0] and&amp;nbsp;masterDataReceive[1] respectively , but I'm receiving zero in&amp;nbsp;masterDataReceive[0] &amp;amp; [1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To check whether the selected configuration is correct , I used normal non-sdk code to verify processor expert configuration ( Shown below)&lt;/P&gt;&lt;P&gt;uint16_t LPSPI1_16bits_read;&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,&lt;BR /&gt;g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;BR /&gt;PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;BR /&gt;LPSPI_DRV_MasterInit(LPSPICOM1,&amp;amp;lpspiCom1State,&amp;amp;lpspiCom1_MasterConfig0);&lt;/P&gt;&lt;P&gt;while((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_TDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_TDF_SHIFT==0);&lt;BR /&gt;&amp;nbsp;/* Wait for Tx FIFO available */&lt;BR /&gt;&amp;nbsp;LPSPI1-&amp;gt;TDR = 0xFD00; /* Transmit data */&lt;BR /&gt;&amp;nbsp;LPSPI1-&amp;gt;SR |= LPSPI_SR_TDF_MASK; /* Clear TDF flag*/&lt;BR /&gt;&amp;nbsp;while((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_RDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_RDF_SHIFT==0);&lt;BR /&gt;&amp;nbsp;/* Wait at least one RxFIFO entry */&lt;BR /&gt;&amp;nbsp;LPSPI1_16bits_read= LPSPI1-&amp;gt;RDR; /* Read received data */&lt;BR /&gt;&amp;nbsp;LPSPI1-&amp;gt;SR |= LPSPI_SR_RDF_MASK; /* Clear RDF flag*/&lt;/P&gt;&lt;P&gt;With the above code , I could see 0xFDEF in&amp;nbsp;LPSPI1_16bits_read variable , from that I could conclude that there is no issue with processor expert configuration&lt;/P&gt;&lt;P&gt;I'm suspecting I might have sent wrong paramters for&amp;nbsp;LPSPI_DRV_MasterTransferBlocking API , Please let me know if something is wrong&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 09:18:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1414315#M14020</guid>
      <dc:creator>KARTHKSARODE</dc:creator>
      <dc:date>2022-02-16T09:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Non-SDK example in SDK LPSPI (S32K144_Project_LPSPI --&gt; SDK_S32K144_Project_LPSP</title>
      <link>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1415167#M14041</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192520"&gt;@KARTHKSARODE&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you please read the error code that the function returns?&lt;/P&gt;
&lt;P&gt;Have you scopped the bus?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 09:26:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1415167#M14041</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-02-17T09:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Non-SDK example in SDK LPSPI (S32K144_Project_LPSPI --&gt; SDK_S32K144_Project_LPSP</title>
      <link>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1415194#M14043</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function returns STATUS_SUCCESS&lt;/P&gt;&lt;P&gt;Sadly I don't have any scope with me to test the bus , from the code snippet can you find any error??&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 09:44:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1415194#M14043</guid>
      <dc:creator>KARTHKSARODE</dc:creator>
      <dc:date>2022-02-17T09:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Non-SDK example in SDK LPSPI (S32K144_Project_LPSPI --&gt; SDK_S32K144_Project_LPSP</title>
      <link>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1415988#M14056</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192520"&gt;@KARTHKSARODE&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I don't see any issues in the code you posted.&lt;/P&gt;
&lt;P&gt;Can you share the project so that I can reproduce it on my side?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 12:21:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1415988#M14056</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-02-18T12:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Non-SDK example in SDK LPSPI (S32K144_Project_LPSPI --&gt; SDK_S32K144_Project_LPSP</title>
      <link>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1416447#M14062</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After modifying&amp;nbsp;from uint8_t masterDataSend[2]={0xFD,0x00} to&amp;nbsp;uint8_t masterDataSend[2]={0x00,0xFD}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm able to receive data masterDataReceive[0]=0xEF &amp;amp;&amp;nbsp;masterDataReceive[1]=0xFD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why is it working for this combination , can you provide feedback on this ??&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 05:23:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1416447#M14062</guid>
      <dc:creator>KARTHKSARODE</dc:creator>
      <dc:date>2022-02-21T05:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Non-SDK example in SDK LPSPI (S32K144_Project_LPSPI --&gt; SDK_S32K144_Project_LPSP</title>
      <link>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1417534#M14089</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192520"&gt;@KARTHKSARODE&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If you have a test project, please share it.&lt;/P&gt;
&lt;P&gt;I'm not able to reproduce it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 14:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1417534#M14089</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-02-22T14:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Non-SDK example in SDK LPSPI (S32K144_Project_LPSPI --&gt; SDK_S32K144_Project_LPSP</title>
      <link>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1418083#M14106</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the attached project for reference&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 08:52:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1418083#M14106</guid>
      <dc:creator>KARTHKSARODE</dc:creator>
      <dc:date>2022-02-23T08:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Non-SDK example in SDK LPSPI (S32K144_Project_LPSPI --&gt; SDK_S32K144_Project_LPSP</title>
      <link>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1419154#M14144</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192520"&gt;@KARTHKSARODE&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for the project.&lt;/P&gt;
&lt;P&gt;It depends on how the data are placed in the memory.&lt;/P&gt;
&lt;P&gt;I get good results if I do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;uint16_t masterDataSend[1]={0xFD00};

uint16_t masterDataReceive[1];

status=LPSPI_DRV_MasterTransferBlocking(LPSPICOM1,(uint8_t*)&amp;amp;masterDataSend[0],(uint8_t*)&amp;amp;masterDataReceive[0],2U,10U);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 14:27:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1419154#M14144</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-02-24T14:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Non-SDK example in SDK LPSPI (S32K144_Project_LPSPI --&gt; SDK_S32K144_Project_LPSP</title>
      <link>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1419513#M14157</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 04:16:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Implementing-Non-SDK-example-in-SDK-LPSPI-S32K144-Project-LPSPI/m-p/1419513#M14157</guid>
      <dc:creator>KARTHKSARODE</dc:creator>
      <dc:date>2022-02-25T04:16:21Z</dc:date>
    </item>
  </channel>
</rss>

