<?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>Kinetis MicrocontrollersのトピックRe: Trigger  a DMA transfer - (SPI transfer ) periodically with PIT</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1423146#M62552</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is exactly what I wanted to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to get GPIO to trigger PIT . But on PIT expiring, it is not triggering DMA - SPI transfer at edma channel0.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viveknath&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 07:53:44 GMT</pubDate>
    <dc:creator>viveknath_thulasi</dc:creator>
    <dc:date>2022-03-04T07:53:44Z</dc:date>
    <item>
      <title>Trigger  a DMA transfer - (SPI transfer ) periodically with PIT</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1421251#M62534</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;µC - MK66&lt;/P&gt;&lt;P&gt;I am trying to configure a EDMA transfer with SPI and PIT with the peripheral Tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is , On a GPIO interrupt I need to trigger a PIT(PIT0) which inturn needs to trigger the SPI-EDMA transfer&lt;/P&gt;&lt;P&gt;40 Transfers ( on Each Transfer 4 * 2 Bytes data )&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I configured&lt;/P&gt;&lt;P&gt;DMA&amp;nbsp;#60: AlwaysOn 60 - for Tx to SPI1 through eDMA Ch-0&lt;/P&gt;&lt;P&gt;, with Tx to SPI1-&amp;gt;PUSHR&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;#16: SPI1 Receive for Rx messages. eDMA Ch-1&lt;/P&gt;&lt;P&gt;with recieve data Rx on SPI1-&amp;gt;POPR&lt;/P&gt;&lt;P&gt;I return the Transaction to µC after 40 Transfers (On Major Loop Completion)&lt;/P&gt;&lt;P&gt;are completed to stop the PIT and continue.&lt;/P&gt;&lt;P&gt;On Non-transactional (TCD structure)&lt;/P&gt;&lt;P&gt;Minor Count of 4&amp;nbsp;&lt;/P&gt;&lt;P&gt;Major Count of 40&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also configured SPI1 seperately with its configuration&lt;/P&gt;&lt;P&gt;I am not able to see any SPI transfers happening. And Also based on these Peripheral Setting, execution asserts on Initialization&amp;nbsp;DSPI_MasterTransferCreateHandleEDMA&amp;nbsp;&amp;nbsp; (edmaRxRegToRxDataHandle,&amp;nbsp;edmaTxDataToIntermediaryHandle)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to get the interrupt and start the PIT&lt;/P&gt;&lt;P&gt;As I need to configure PIT to trigger DMA, I did not enable interrupts on it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am i Missing?&lt;/P&gt;&lt;P&gt;Any info would be helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 12:56:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1421251#M62534</guid>
      <dc:creator>viveknath_thulasi</dc:creator>
      <dc:date>2022-03-03T12:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger  a DMA transfer - (SPI transfer ) periodically with PIT</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1422987#M62551</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;viveknath_thula&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;si&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In order to help you, I understand the follow, you want to make with an GPIO IRQ trigger the PIT, when the PIT expire the count, trigger the DMA to fill the SPI with data to make the transference. Please correct me if that isn't correct.&lt;/P&gt;
&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pavel_Hernandez&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 02:14:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1422987#M62551</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-03-04T02:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger  a DMA transfer - (SPI transfer ) periodically with PIT</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1423146#M62552</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is exactly what I wanted to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to get GPIO to trigger PIT . But on PIT expiring, it is not triggering DMA - SPI transfer at edma channel0.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viveknath&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 07:53:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1423146#M62552</guid>
      <dc:creator>viveknath_thulasi</dc:creator>
      <dc:date>2022-03-04T07:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger  a DMA transfer - (SPI transfer ) periodically with PIT</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1423486#M62553</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;viveknath_thula&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;si&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I recommend you use the example from the SDK, DSPI EDMA B2B and combine this with the PIT example, I made a little test with two boards, but I build this with software trigger with successfully result.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pavel_Hernandez&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 04:29:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1423486#M62553</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-03-05T04:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger  a DMA transfer - (SPI transfer ) periodically with PIT</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1423502#M62555</link>
      <description>&lt;P&gt;Hello again I forget something, in the example from the SDK there are a macro TRANSFER_SIZE you can modify to 8U and trigger 40 for each transfer.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pavel_Hernandez&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 11:44:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1423502#M62555</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-03-05T11:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger  a DMA transfer - (SPI transfer ) periodically with PIT</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1423880#M62560</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks a lot for your response.&lt;/P&gt;&lt;P&gt;Do we have to configure PIT with interrupts?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also , Do we have to start the EDMA transfer explicitly? or it is triggered automatically from the PIT software triggers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if Possible can you please share the Test project for reference ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 10:53:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1423880#M62560</guid>
      <dc:creator>viveknath_thulasi</dc:creator>
      <dc:date>2022-03-07T10:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger  a DMA transfer - (SPI transfer ) periodically with PIT</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1426473#M62599</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;viveknath_thula&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;si&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Q1) Do we have to configure PIT with interrupts?&amp;nbsp;&lt;BR /&gt;R1) That's right, I recommend review the example PIT form the SDK.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Q2) Do we have to start the EDMA transfer explicitly? or it is triggered automatically from the PIT software triggers?&lt;BR /&gt;R2) I found some information may help you in the Reference Manual, please review the chapter&amp;nbsp;&lt;STRONG&gt;23.1.2&amp;nbsp;DMA transfers via PIT trigger.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Q3) Possible can you please share the Test project for reference ?&lt;BR /&gt;R3) I recommend use the example from the SDK and combine as you need it.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Reference Manual link below.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true" target="_blank"&gt;Kinetis K66: 180MHz Cortex&amp;lt;sub&amp;gt;®&amp;lt;/sub&amp;gt;-M4F up to 2MB Flash (144pin) (nxp.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 02:15:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1426473#M62599</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-03-11T02:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger  a DMA transfer - (SPI transfer ) periodically with PIT</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1427266#M62611</link>
      <description>&lt;P&gt;Hi Pavel Hernandez,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your response.&lt;/P&gt;&lt;P&gt;I have made some progress with the implementation but not yet fully achieved.&lt;/P&gt;&lt;P&gt;I want to clarify some updates:&lt;/P&gt;&lt;P&gt;1. I am Able to trigger the DMA channels without configuring PIT as interrupts.&lt;/P&gt;&lt;P&gt;2. I have referred this sections section 23.1.2 . It was helpful thank you.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;the example uses&amp;nbsp;channel API : Transactional structures and I want to use Non - Transactional Structures with much more flexibility to configure minor loop and major loop counts and Modulo operations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The important problem that I faced was to provide a particular RAM section for :&amp;nbsp;AT_NONCACHEABLE_SECTION_ALIGN_INIT - This is a part of generated code from the Peripheral tool.&lt;/P&gt;&lt;P&gt;I added a separate RAM section in the Project settings and hence now i am able to access the generated TCD structures.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 10:27:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-a-DMA-transfer-SPI-transfer-periodically-with-PIT/m-p/1427266#M62611</guid>
      <dc:creator>viveknath_thulasi</dc:creator>
      <dc:date>2022-03-12T10:27:49Z</dc:date>
    </item>
  </channel>
</rss>

