<?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: Trying to Write two SDCards at same time using SPI. MK20DX256VLL10 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2258122#M68080</link>
    <description>&lt;P&gt;Sorry about the late reply.&lt;BR /&gt;&lt;BR /&gt;Yes, both&amp;nbsp;&lt;SPAN&gt;SM2_SendBlock and&amp;nbsp;SM3_SendBlock are blocking.&lt;BR /&gt;&lt;BR /&gt;Handling trought interrupts you say any interrupt? Like, calling them from a external interrupt?&lt;BR /&gt;&lt;BR /&gt;About DMA, i was looking for this. I think i will try to add DMA, but first i would need executing the transfers simultaneously.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Dec 2025 11:45:21 GMT</pubDate>
    <dc:creator>Pedro_Henrique</dc:creator>
    <dc:date>2025-12-09T11:45:21Z</dc:date>
    <item>
      <title>Trying to Write two SDCards at same time using SPI. MK20DX256VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2205217#M68024</link>
      <description>&lt;P&gt;Hello, this is my first post here, please tell me if im doing something wrong. Also english is not my main language, sorry if i say something wrong.&lt;BR /&gt;&lt;BR /&gt;I'm trying to write two SDCards at same time using SPI. Why at the same time? Because i need to do as fast as possible.&lt;BR /&gt;&lt;BR /&gt;At the time im writing this, im able to copy 48Mb of hex numbers in 07:10 minutes, using 10Mhz in SPI clock. I use the functions generated by Processor Expert:&lt;BR /&gt;&lt;BR /&gt;"SM*_ReceiveBlock(SM*_DeviceData, &amp;amp;Buffer, qnt*).&lt;BR /&gt;&lt;BR /&gt;After gathering some logs with my logic, i noticed that even if i send:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;SM2_ReceiveBlock(SM2_DeviceData, &amp;amp;Suporte, 1);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SM2_SendBlock(SM2_DeviceData, StartBlock, 1);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SM3_ReceiveBlock(SM3_DeviceData, &amp;amp;Suporte, 1);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SM3_SendBlock(SM3_DeviceData, StartBlock, 1);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;The SPI sends first the SM2 and them SM3. If its the SPI machine who sends the blocks and handle the receiving, i should be able to make these two at same time, no?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 13:39:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2205217#M68024</guid>
      <dc:creator>Pedro_Henrique</dc:creator>
      <dc:date>2025-11-14T13:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Write two SDCards at same time using SPI. MK20DX256VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2239477#M68038</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/256911"&gt;@Pedro_Henrique&lt;/a&gt;,&lt;BR /&gt;Sorry for the late reply, in order to support you better, could you please provide me the next information?&lt;/P&gt;
&lt;P&gt;-Which IDE are you using to develop your application?&lt;BR /&gt;-Are you currently using a custom board? If the response is not, which FDRM are you using?&lt;BR /&gt;- How are you connecting the SD cards with your system?&lt;BR /&gt;- Which specific pins are assigned to the SPI interfaces in your design?&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Habib&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 20:41:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2239477#M68038</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2025-11-21T20:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Write two SDCards at same time using SPI. MK20DX256VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2247430#M68039</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231807"&gt;@Habib_MS&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;No problem for the later reply! Thanks for stopping by to help me.&lt;BR /&gt;&lt;BR /&gt;- I'm currently using Kinetis Design Studio 3.0.0 with Processor Expert.&lt;BR /&gt;- Yes, it is a custom board.&lt;BR /&gt;- I'm using MicroSD Sockets, with 200R resistor in series so i don't fry my MK20 by accident.&lt;BR /&gt;- About the pins:&lt;BR /&gt;for SPI0: MISO - PTC7 / MOSI - PTC6 / CLK - PTC5 / CS - PTC4&lt;BR /&gt;for SPI1: MISO - PTB23/ MOSI - PTB22 / CLK - PTB21 / CS - PTB20&lt;BR /&gt;for SPI2: MISO - PTE3 / MOSI - PTE1&amp;nbsp; &amp;nbsp; / CLK - PTE2&amp;nbsp; &amp;nbsp;/ CS - PTE0&lt;BR /&gt;&lt;BR /&gt;Please let me know if you need something more.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 13:32:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2247430#M68039</guid>
      <dc:creator>Pedro_Henrique</dc:creator>
      <dc:date>2025-11-24T13:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Write two SDCards at same time using SPI. MK20DX256VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2251364#M68062</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/256911"&gt;@Pedro_Henrique&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;In order to understand better you application, Is SM2_SendBlock blocking?&lt;BR /&gt;If the answer is yes, then to allow transfers to occur simultaneously, they must be handled through interrupts; otherwise, the core will execute the transfers sequentially, one after the other. Additionally, DMA can be added for higher speed.&lt;/P&gt;
&lt;P&gt;BR&lt;BR /&gt;Habib&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 20:42:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2251364#M68062</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2025-11-28T20:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Write two SDCards at same time using SPI. MK20DX256VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2258122#M68080</link>
      <description>&lt;P&gt;Sorry about the late reply.&lt;BR /&gt;&lt;BR /&gt;Yes, both&amp;nbsp;&lt;SPAN&gt;SM2_SendBlock and&amp;nbsp;SM3_SendBlock are blocking.&lt;BR /&gt;&lt;BR /&gt;Handling trought interrupts you say any interrupt? Like, calling them from a external interrupt?&lt;BR /&gt;&lt;BR /&gt;About DMA, i was looking for this. I think i will try to add DMA, but first i would need executing the transfers simultaneously.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 11:45:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2258122#M68080</guid>
      <dc:creator>Pedro_Henrique</dc:creator>
      <dc:date>2025-12-09T11:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Write two SDCards at same time using SPI. MK20DX256VLL10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2260393#M68084</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/256911"&gt;@Pedro_Henrique&lt;/a&gt;,&lt;BR /&gt;You need to configure the SPI to use interrupts instead of blocking writes. This approach allows both data transfers to occur simultaneously.&lt;BR /&gt;You can achieve this using Processor Expert, and this &lt;A href="https://community.nxp.com/t5/Processor-Expert-Software/MC9S12A64-SPI-interrupt-Processor-Expert/m-p/211784" target="_self"&gt;community post&lt;/A&gt; might be helpful as a reference.&lt;BR /&gt;Additionally, you can review this &lt;A href="https://mcuxpresso.nxp.com/api_doc/dev/116/group__spi.html" target="_self"&gt;guide&lt;/A&gt;, which demonstrates a typical use case for SPI interrupts. Although the example is not specifically for the K20, the implementation steps are essentially the same.&lt;/P&gt;
&lt;P&gt;BR&lt;BR /&gt;Habib&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2025 16:54:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-Write-two-SDCards-at-same-time-using-SPI/m-p/2260393#M68084</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2025-12-11T16:54:36Z</dc:date>
    </item>
  </channel>
</rss>

