<?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 Design StudioのトピックRe: SDK 1.3 DSPI interrupt handler issue</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/SDK-1-3-DSPI-interrupt-handler-issue/m-p/500247#M6281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Randy,&lt;/P&gt;&lt;P&gt;- The spi interrupt function is "SPI2_IRQHandler()"?&lt;/P&gt;&lt;P&gt;Please tell me the whole part number of your chip , how many SPI module does it have ?&lt;/P&gt;&lt;P&gt;- You can check the register about SPI interrupt , check whether the interrupt flag set ?&lt;/P&gt;&lt;P&gt;&amp;nbsp; whether enable the interrupt&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;- Under KSDK 1.3 , there is one SPI demo , i think you&amp;nbsp; can refer to :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KSDK_1.3.0\rtos\mqx\mqx\examples\dspi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 May 2016 02:24:38 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-05-27T02:24:38Z</dc:date>
    <item>
      <title>SDK 1.3 DSPI interrupt handler issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/SDK-1-3-DSPI-interrupt-handler-issue/m-p/500246#M6280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SDK 1.3 DSPI issue.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to use the DSPI driver functions.&amp;nbsp; They appear to initialize properly, but when I do a blocking transfer it never comes back.&lt;/P&gt;&lt;P&gt;Looking at the link map it appears that the default interrupt handler is still installed for SPI.&lt;/P&gt;&lt;P&gt;I am using the SDK and MQX as libraries.&lt;/P&gt;&lt;P&gt;The SDK build includes fsl_dspi_irq.c.&lt;/P&gt;&lt;P&gt;What can cause SPI2_IRQHandler() to not be linked into the SPI interrupt vector.&lt;/P&gt;&lt;P&gt;I'm building everything for MK22FX processor. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 01:32:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/SDK-1-3-DSPI-interrupt-handler-issue/m-p/500246#M6280</guid>
      <dc:creator>rhermes</dc:creator>
      <dc:date>2016-05-25T01:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 1.3 DSPI interrupt handler issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/SDK-1-3-DSPI-interrupt-handler-issue/m-p/500247#M6281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Randy,&lt;/P&gt;&lt;P&gt;- The spi interrupt function is "SPI2_IRQHandler()"?&lt;/P&gt;&lt;P&gt;Please tell me the whole part number of your chip , how many SPI module does it have ?&lt;/P&gt;&lt;P&gt;- You can check the register about SPI interrupt , check whether the interrupt flag set ?&lt;/P&gt;&lt;P&gt;&amp;nbsp; whether enable the interrupt&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;- Under KSDK 1.3 , there is one SPI demo , i think you&amp;nbsp; can refer to :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KSDK_1.3.0\rtos\mqx\mqx\examples\dspi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 02:24:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/SDK-1-3-DSPI-interrupt-handler-issue/m-p/500247#M6281</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-05-27T02:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 1.3 DSPI interrupt handler issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/SDK-1-3-DSPI-interrupt-handler-issue/m-p/500248#M6282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Thank you for the response - sorry for taking so long to get back to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Switched to another project, but I'm back working on the SPI now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The good news is that I have the interrupts working now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Turns out I needed to set the interrupt handler using the MQX _int_install_isr() function since I am using MQX.&amp;nbsp; duh!&lt;/P&gt;&lt;P&gt;Now I have a new problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In my initialization code I read the ID information from a flash chip that is on the SPI bus.&lt;/P&gt;&lt;P&gt;If I run at full speed I get a task error MQX_UNHANDLED_INTERRUPT (0x0041)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Which is vector 65, the SPI2 interrupt vector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In addition it appears the unhandled interrupt repeats indefinitely.&lt;/P&gt;&lt;P&gt;If I set a breakpoint at DSPI_DRV_MasterCompleteTransfer(), OSA_SemaPost(&amp;amp;dspiState-&amp;gt;irqSync);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then run after the breakpoint the SPI read completes properly and I don't get the task error.&lt;/P&gt;&lt;P&gt;If I remove the breakpoint at DSPI_DRV_MasterCompleteTransfer(), OSA_SemaPost(&amp;amp;dspiState-&amp;gt;irqSync) and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set a breakpoint at DSPI_DRV_MasterTransferBlocking(), if (syncStatus != kStatus_OSA_Success); just after the OSA_SemaWait call,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it never gets there but ends up in the unhandled interrupt looping state.&lt;/P&gt;&lt;P&gt;Any advice is appreciated.&lt;/P&gt;&lt;P&gt;I'm running on a MK22FX512AVLQ12, using SDK 1.3 and MQX that is included in the SDK.&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Randy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 21:54:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/SDK-1-3-DSPI-interrupt-handler-issue/m-p/500248#M6282</guid>
      <dc:creator>rhermes</dc:creator>
      <dc:date>2016-06-27T21:54:55Z</dc:date>
    </item>
  </channel>
</rss>

