<?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: Cannot enter EXAMPLE_DSPI_SLAVE_IRQHandler when debugging dspi_interrupt example in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763980#M46522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kevin Yu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested the dspi_interrupt example on FRDM-K64F and I'm able to enter both interrupts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please verify your HW connections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the board settings for the&amp;nbsp;&lt;SPAN&gt;dspi_interrupt example:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-bottom: .0001pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;==============&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;SPI one board:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Transfer data from instance0 to instance 1 of SPI interface.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;SPI0 pins are connected with SPI1 pins of board&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;INSTANCE0(SPI0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONNECTS TO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSTANCE1(SPI1)&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Pin Name&amp;nbsp;&amp;nbsp; Board Location&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pin Name&amp;nbsp; Board Location&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;MISO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J2 pin 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MISO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J6 pin 6&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;MOSI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J2 pin 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOSI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J6 pin 7&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;SCK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J2 pin 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J6 pin 5&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;PCS0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J2 pin 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PCS0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J6 pin 4&lt;/P&gt;&lt;P&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you are still having issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Apr 2018 00:36:44 GMT</pubDate>
    <dc:creator>gerardo_rodriguez</dc:creator>
    <dc:date>2018-04-06T00:36:44Z</dc:date>
    <item>
      <title>Cannot enter EXAMPLE_DSPI_SLAVE_IRQHandler when debugging dspi_interrupt example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763979#M46521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kinetis K64 dspi_interrupt example was compiled and debugged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define EXAMPLE_DSPI_MASTER_IRQHandler SPI0_IRQHandler&lt;/P&gt;&lt;P&gt;#define EXAMPLE_DSPI_SLAVE_IRQHandler SPI1_IRQHandler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One break point was set to&amp;nbsp;EXAMPLE_DSPI_MASTER_IRQHandler.&lt;/P&gt;&lt;P&gt;The other was set to&amp;nbsp;EXAMPLE_DSPI_SLAVE_IRQHandler&lt;/P&gt;&lt;P&gt;The physical pins are wired as example required:&lt;/P&gt;&lt;P&gt;DSPI_master -- DSPI_slave &lt;BR /&gt; CLK -- CLK &lt;BR /&gt; PCS -- PCS &lt;BR /&gt; SOUT -- SIN &lt;BR /&gt; SIN -- SOUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EXAMPLE_DSPI_&lt;/SPAN&gt;&lt;SPAN&gt;MASTER&lt;/SPAN&gt;&lt;SPAN&gt;_IRQHandler break point was entered many times.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But&amp;nbsp;EXAMPLE_DSPI_SLAVE_IRQHandler NEVER entered. Therefore the data tx and rx cannot succeed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why the slave interrupt won't work. How to debug this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 08:19:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763979#M46521</guid>
      <dc:creator>kevinyuthermo</dc:creator>
      <dc:date>2018-04-04T08:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot enter EXAMPLE_DSPI_SLAVE_IRQHandler when debugging dspi_interrupt example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763980#M46522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kevin Yu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested the dspi_interrupt example on FRDM-K64F and I'm able to enter both interrupts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please verify your HW connections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the board settings for the&amp;nbsp;&lt;SPAN&gt;dspi_interrupt example:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-bottom: .0001pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;==============&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;SPI one board:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Transfer data from instance0 to instance 1 of SPI interface.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;SPI0 pins are connected with SPI1 pins of board&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;INSTANCE0(SPI0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONNECTS TO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSTANCE1(SPI1)&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Pin Name&amp;nbsp;&amp;nbsp; Board Location&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pin Name&amp;nbsp; Board Location&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;MISO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J2 pin 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MISO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J6 pin 6&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;MOSI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J2 pin 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOSI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J6 pin 7&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;SCK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J2 pin 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J6 pin 5&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;PCS0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J2 pin 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PCS0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J6 pin 4&lt;/P&gt;&lt;P&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you are still having issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 00:36:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763980#M46522</guid>
      <dc:creator>gerardo_rodriguez</dc:creator>
      <dc:date>2018-04-06T00:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot enter EXAMPLE_DSPI_SLAVE_IRQHandler when debugging dspi_interrupt example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763981#M46523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without changing any code, the slave interrupt break pint hits today.&lt;/P&gt;&lt;P&gt;But the data compare failed for master send and slave receive.&lt;/P&gt;&lt;P&gt;In the sample, master&amp;nbsp;sends the 256 bytes data to slave, and slave read it. about half of the bytes received are incorrect. While slave sending and master receiving is correct.&lt;/P&gt;&lt;P&gt;Please let me know if anything I can try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2018 07:03:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763981#M46523</guid>
      <dc:creator>kevinyuthermo</dc:creator>
      <dc:date>2018-04-08T07:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot enter EXAMPLE_DSPI_SLAVE_IRQHandler when debugging dspi_interrupt example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763982#M46524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you test the demo without any breakpoint enabled? If you have a breakpoint enabled in the slave interrupt, the SPI transaction may be affected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend viewing the SPI signals with a logic analyzer or oscilloscope to see if the data from the master is sent correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know your results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 19:24:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763982#M46524</guid>
      <dc:creator>gerardo_rodriguez</dc:creator>
      <dc:date>2018-04-10T19:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot enter EXAMPLE_DSPI_SLAVE_IRQHandler when debugging dspi_interrupt example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763983#M46525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without break points, the results are the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;errorCount = 0U;&lt;BR /&gt; for (i = 0U; i &amp;lt; TRANSFER_SIZE; i++)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (masterTxData[i] != slaveRxData[i])&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errorCount++;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; // masterTxData is 255 bytes long with value from 0x00 to 0xFF&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; // slaveRxData is wrong (first 127 bytes are 00, the rest 127 bytes are 80).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; if (slaveTxData[i] != masterRxData[i])&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errorCount++;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; // slaveTxData is equal to masterRxData, correct for this direction&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still wondering why Master send slave receive failed. (Checked the MOSI pin connection again)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 02:32:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763983#M46525</guid>
      <dc:creator>kevinyuthermo</dc:creator>
      <dc:date>2018-04-11T02:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot enter EXAMPLE_DSPI_SLAVE_IRQHandler when debugging dspi_interrupt example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763984#M46526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good news is that everything works fine now.&lt;/P&gt;&lt;P&gt;The reason for the failure is that my SPI0 physically connected both slaves, SPI1 and AD7124. After unplug the core board, the MISO and MOSI can work as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much along the road.&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 03:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-enter-EXAMPLE-DSPI-SLAVE-IRQHandler-when-debugging-dspi/m-p/763984#M46526</guid>
      <dc:creator>kevinyuthermo</dc:creator>
      <dc:date>2018-04-11T03:32:19Z</dc:date>
    </item>
  </channel>
</rss>

