<?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 Re: FREEDM K22F SPI Communication with LoRa SX1276 in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FREEDM-K22F-SPI-Communication-with-LoRa-SX1276/m-p/1690719#M10237</link>
    <description>&lt;P&gt;Hi Omar&lt;/P&gt;&lt;P&gt;Hope you are well.&lt;/P&gt;&lt;P&gt;Could you please help me find this example or function definition? I have been looking online and can't trace it.&lt;/P&gt;&lt;P&gt;Also, do you think this would work on the KL25Z?&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
    <pubDate>Sat, 22 Jul 2023 11:27:22 GMT</pubDate>
    <dc:creator>gnps44</dc:creator>
    <dc:date>2023-07-22T11:27:22Z</dc:date>
    <item>
      <title>FREEDM K22F SPI Communication with LoRa SX1276</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FREEDM-K22F-SPI-Communication-with-LoRa-SX1276/m-p/1284884#M10189</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am currently working with the FRDM-K22F and trying to communicate with a LoRa Module based on the Semtech SX1276 via SPI. I want to read and write from/to the LoRa module. I am sending the address and value in an array in Single access mode. My problem is that the replies from the LoRa module are simply wrong and it is not working.&lt;BR /&gt;How do I know that it's wrong? I have a fully functional Setup with Arduino and LoRa SX1276 (also via SPI communication) and can read the outputs.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I am using the dspi_half_duplex_int_master SDK for communication for K22F&lt;/LI&gt;&lt;LI&gt;The Arduino is using the default Arduino LIbray for SPI communication.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This means, that in Arduion I am using the spi-&amp;gt;transfer() function, whereas in the K22F I am&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;DSPI_MasterInit()&lt;/LI&gt;&lt;LI&gt;DSPI_MasterTransferCreateHandle()&lt;/LI&gt;&lt;LI&gt;DSPI_MasterHalfDuplexTransferNonBlocking()&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;to send.&lt;/P&gt;&lt;P&gt;I have already checked the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have checked the buffers and the sent content is correct.&lt;/LI&gt;&lt;LI&gt;I have checked the clock frequency and tested various values. Also to no avail&lt;/LI&gt;&lt;LI&gt;SPI-mode is the same as in Arduinos case (CPHA=0, CPOL=0)&lt;/LI&gt;&lt;LI&gt;slave-select line (with an oscilloscop) and that's ok. Both are sent in MSB so that's also fine.&lt;/LI&gt;&lt;LI&gt;Checked SPI communication between K22F(master) and Arduino(slave) as a test, so sending works.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;At this point I don't know what further error sources to pursue. For the LoRa code I am using these examples:&amp;nbsp;&lt;A href="https://github.com/sandeepmistry/arduino-LoRa" target="_blank"&gt;GitHub - sandeepmistry/arduino-LoRa: An Arduino library for sending and receiving data using LoRa radios.&lt;/A&gt;&amp;nbsp;and this one&amp;nbsp;&lt;A href="https://github.com/loraraspi91/LoRa4Raspi" target="_blank"&gt;GitHub - loraraspi91/LoRa4Raspi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;One difference I could observe with the help of the oscilloscop is that in the case of the K22F there are 4 flanks on the MOSI line in one Single access whereas on the Arduino there are only 2. I am not sure if that is of any use.&lt;/P&gt;&lt;P&gt;thanks for any help!&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 17:22:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/FREEDM-K22F-SPI-Communication-with-LoRa-SX1276/m-p/1284884#M10189</guid>
      <dc:creator>CK3</dc:creator>
      <dc:date>2021-05-31T17:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: FREEDM K22F SPI Communication with LoRa SX1276</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FREEDM-K22F-SPI-Communication-with-LoRa-SX1276/m-p/1287067#M10190</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Hope you are well. I will gladly help you with this.&lt;BR /&gt;I suggest you use the function "DSPI_MasterTransferNonBlocking()" you can find an example of how to use it in the SDK example "dspi_interrupt_b2b_transfer_master".&lt;/P&gt;
&lt;P&gt;Arduino uses a full-duplex scheme for the SPI so I suggest you refer to that example that is not in half-duplex.&lt;/P&gt;
&lt;P&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;BR /&gt;Best regards,&lt;BR /&gt;Omar&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 22:53:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/FREEDM-K22F-SPI-Communication-with-LoRa-SX1276/m-p/1287067#M10190</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2021-06-03T22:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: FREEDM K22F SPI Communication with LoRa SX1276</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FREEDM-K22F-SPI-Communication-with-LoRa-SX1276/m-p/1288942#M10191</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hope you are also well.&lt;BR /&gt;Is this a problem, that the example SDK I use is half-duplex? From what I have read, half-duplex does not exist for SPI, since the master is always responsible for transfer.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;CK&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 08:56:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/FREEDM-K22F-SPI-Communication-with-LoRa-SX1276/m-p/1288942#M10191</guid>
      <dc:creator>CK3</dc:creator>
      <dc:date>2021-06-08T08:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: FREEDM K22F SPI Communication with LoRa SX1276</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FREEDM-K22F-SPI-Communication-with-LoRa-SX1276/m-p/1289028#M10192</link>
      <description>&lt;P&gt;Ok, I was now able to try it out with the&amp;nbsp;&lt;SPAN&gt;DSPI_MasterTransferNonBlocking() and it works. Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 09:52:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/FREEDM-K22F-SPI-Communication-with-LoRa-SX1276/m-p/1289028#M10192</guid>
      <dc:creator>CK3</dc:creator>
      <dc:date>2021-06-08T09:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: FREEDM K22F SPI Communication with LoRa SX1276</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FREEDM-K22F-SPI-Communication-with-LoRa-SX1276/m-p/1690719#M10237</link>
      <description>&lt;P&gt;Hi Omar&lt;/P&gt;&lt;P&gt;Hope you are well.&lt;/P&gt;&lt;P&gt;Could you please help me find this example or function definition? I have been looking online and can't trace it.&lt;/P&gt;&lt;P&gt;Also, do you think this would work on the KL25Z?&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2023 11:27:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/FREEDM-K22F-SPI-Communication-with-LoRa-SX1276/m-p/1690719#M10237</guid>
      <dc:creator>gnps44</dc:creator>
      <dc:date>2023-07-22T11:27:22Z</dc:date>
    </item>
  </channel>
</rss>

