<?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 Software Development KitのトピックHow do you use DSPI_DRV_MasterTransferData in the fsl_dspi bean?</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-do-you-use-DSPI-DRV-MasterTransferData-in-the-fsl-dspi-bean/m-p/351281#M415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a blank project using kinetis sdk (it forces you to use kinetis sdk) and processor expert for the K22FN512 that has nothing but a fsl_dspi bean added.&amp;nbsp; The auto-init options are checked and I have verified that MasterConfigureBus gets called within PE_low_level_init. In addition to including stdint.h, the following is the code I have added to the blank project:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint8_t rxbuf[256];&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint8_t txbuf[256];&lt;/P&gt;&lt;P&gt;&amp;nbsp; DSPI_DRV_MasterTransferData(FSL_SPICOM1, 0, txbuf, rxbuf, 10);&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(1);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code compiles without any warnings or errors but when it runs it ends up at the default interrupt handler in an endless loop.&amp;nbsp; Pausing the debugger shows that it is here:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Default_Handler:&lt;/P&gt;&lt;P&gt;&amp;nbsp; b .&lt;/P&gt;&lt;P&gt;&amp;nbsp; .size Default_Handler, . - Default_Handler&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've given this code plenty of time to run and have concluded that it is never going to exit this loop.&amp;nbsp; It looks like there is supposed to be an interrupt handler for the fsl_dspi bean but I don't see any options for that in processor expert.&amp;nbsp; What am I missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2014 19:17:52 GMT</pubDate>
    <dc:creator>robotjosh</dc:creator>
    <dc:date>2014-11-18T19:17:52Z</dc:date>
    <item>
      <title>How do you use DSPI_DRV_MasterTransferData in the fsl_dspi bean?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-do-you-use-DSPI-DRV-MasterTransferData-in-the-fsl-dspi-bean/m-p/351281#M415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a blank project using kinetis sdk (it forces you to use kinetis sdk) and processor expert for the K22FN512 that has nothing but a fsl_dspi bean added.&amp;nbsp; The auto-init options are checked and I have verified that MasterConfigureBus gets called within PE_low_level_init. In addition to including stdint.h, the following is the code I have added to the blank project:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint8_t rxbuf[256];&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint8_t txbuf[256];&lt;/P&gt;&lt;P&gt;&amp;nbsp; DSPI_DRV_MasterTransferData(FSL_SPICOM1, 0, txbuf, rxbuf, 10);&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(1);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code compiles without any warnings or errors but when it runs it ends up at the default interrupt handler in an endless loop.&amp;nbsp; Pausing the debugger shows that it is here:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Default_Handler:&lt;/P&gt;&lt;P&gt;&amp;nbsp; b .&lt;/P&gt;&lt;P&gt;&amp;nbsp; .size Default_Handler, . - Default_Handler&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've given this code plenty of time to run and have concluded that it is never going to exit this loop.&amp;nbsp; It looks like there is supposed to be an interrupt handler for the fsl_dspi bean but I don't see any options for that in processor expert.&amp;nbsp; What am I missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 19:17:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-do-you-use-DSPI-DRV-MasterTransferData-in-the-fsl-dspi-bean/m-p/351281#M415</guid>
      <dc:creator>robotjosh</dc:creator>
      <dc:date>2014-11-18T19:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use DSPI_DRV_MasterTransferData in the fsl_dspi bean?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-do-you-use-DSPI-DRV-MasterTransferData-in-the-fsl-dspi-bean/m-p/351282#M416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think I'm supposed to modify fsl_dspi_master_driver.c but I've added the following line below /* enable the interrupt */ in DSPI_DRV_MasterInit():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INT_SYS_InstallHandler(g_dspiIrqId[instance], (void*)DSPI_DRV_MasterIRQHandler);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This allows DSPI_DRV_MasterTransferData to work for transfer size of 1 but when 2 or greater transfer size is used it still goes to an unhandled interrupt.&amp;nbsp; Is there another place I should be installing these interrupt handlers?&amp;nbsp; Some function that does it?&amp;nbsp; Seems like I shouldn't be editing fsl_dspi_master_driver.c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 21:00:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-do-you-use-DSPI-DRV-MasterTransferData-in-the-fsl-dspi-bean/m-p/351282#M416</guid>
      <dc:creator>robotjosh</dc:creator>
      <dc:date>2014-11-18T21:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use DSPI_DRV_MasterTransferData in the fsl_dspi bean?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-do-you-use-DSPI-DRV-MasterTransferData-in-the-fsl-dspi-bean/m-p/351283#M417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Josh,&lt;/P&gt;&lt;P&gt;From your this words "(it forces you to use kinetis sdk)"&amp;nbsp; , if you want use PE without SDK,&amp;nbsp; you can update a patch (&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KV3x&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KV3x&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;KV3x |Kinetis KV3x BLCD MCUs|Freescale&lt;/A&gt;)&amp;nbsp; in KDS. (update step you can refer to the document of&amp;nbsp; attchment&amp;nbsp; , the "Updating Offline" part ).&lt;/P&gt;&lt;P&gt;This patch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47364i89EE260BB9DF444A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After updated ,&amp;nbsp; when you create project chose like this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47359i18684E7F440F7A4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i will continue check the interrupt files of SDK .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 1.0pt 0;"&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt; If this post answers your question, please click the Correct Answer button. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;If this post help your question, please click the helpful Answer button. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 02:59:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-do-you-use-DSPI-DRV-MasterTransferData-in-the-fsl-dspi-bean/m-p/351283#M417</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2014-11-19T02:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use DSPI_DRV_MasterTransferData in the fsl_dspi bean?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-do-you-use-DSPI-DRV-MasterTransferData-in-the-fsl-dspi-bean/m-p/351284#M418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding the fsl_dspi_irq.c file to your project, which can be found at C:\Freescale\KSDK_1.0.0\platform\drivers\dspi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shouldn't require any modifications, just need to add that file to your project. And yes, you shouldn't need to add any code to the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;fsl_dspi_master_driver.c, so if you're still having issues, try removing that line you added and try again. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 22:16:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-do-you-use-DSPI-DRV-MasterTransferData-in-the-fsl-dspi-bean/m-p/351284#M418</guid>
      <dc:creator>anthony_huereca</dc:creator>
      <dc:date>2014-11-19T22:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use DSPI_DRV_MasterTransferData in the fsl_dspi bean?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-do-you-use-DSPI-DRV-MasterTransferData-in-the-fsl-dspi-bean/m-p/351285#M419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have time to try this but will assume it works and will be in the next sdk release.&amp;nbsp; My problem is solved by using pex without ksdk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 22:22:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-do-you-use-DSPI-DRV-MasterTransferData-in-the-fsl-dspi-bean/m-p/351285#M419</guid>
      <dc:creator>robotjosh</dc:creator>
      <dc:date>2014-11-19T22:22:10Z</dc:date>
    </item>
  </channel>
</rss>

