<?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>MQX Software SolutionsのトピックRe: migrating SPI driver to MQX</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/migrating-SPI-driver-to-MQX/m-p/350155#M11283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&amp;nbsp; a lot RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the actual fix were enable BSPCFG_ENABLE_SPI1 in user_config.h (I´m using SPI1)&lt;/P&gt;&lt;P&gt;and now is working. I installed the interrupt&amp;nbsp; with the MQX ISR manager&lt;/P&gt;&lt;P&gt;_int_install_isr(vector, isr_ptr, isr_data);&lt;/P&gt;&lt;P&gt;_bsp_int_init(vector, priority, subpriority, enable);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Oct 2014 15:32:21 GMT</pubDate>
    <dc:creator>JULIOOSVALDOANG</dc:creator>
    <dc:date>2014-10-03T15:32:21Z</dc:date>
    <item>
      <title>migrating SPI driver to MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/migrating-SPI-driver-to-MQX/m-p/350153#M11281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;I´m migrating an (working) SPI driver to MQX.&lt;/P&gt;&lt;P&gt;I had to install the SPI interruption something like this:&lt;/P&gt;&lt;P&gt;_int_install_isr(0x2b, (INT_ISR_FPTR)SPIB_ISR, NULL);&lt;/P&gt;&lt;P&gt;the interruption takes place (vector 0x2b) in my own&lt;/P&gt;&lt;P&gt;ISR I'm&amp;nbsp; accessing to SPI register. I can see that the registers&lt;/P&gt;&lt;P&gt;actually get the correct value but the SPI data never goes out,&lt;/P&gt;&lt;P&gt;I mean I can get the MOSI&amp;nbsp; data signals with an oscilloscope. So&lt;/P&gt;&lt;P&gt;I'm stock rigth now&lt;/P&gt;&lt;P&gt;Could someone suggest me how to proceed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; Julio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 21:41:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/migrating-SPI-driver-to-MQX/m-p/350153#M11281</guid>
      <dc:creator>JULIOOSVALDOANG</dc:creator>
      <dc:date>2014-09-26T21:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: migrating SPI driver to MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/migrating-SPI-driver-to-MQX/m-p/350154#M11282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case of interrupt, you have two options how to install it:&lt;/P&gt;&lt;P&gt;1. MQX managed isr&lt;/P&gt;&lt;P&gt;_int_install_isr(vector, isr_ptr, isr_data);&lt;/P&gt;&lt;P&gt;_bsp_int_init(vector, priority, subpriority, enable);&lt;/P&gt;&lt;P&gt;2. Kernel isr to interrupt MQX&lt;/P&gt;&lt;P&gt;_int_install_kernel_isr(Vector, isr_ptr); /* works only for vector table located in the RAM */&lt;/P&gt;&lt;P&gt;_bsp_int_init(vector, priority, subpriority, enable);&lt;/P&gt;&lt;P&gt;When vector table is in flash, you can install your kernel isr into the hw vector table in vectors.c in BSP project. MQX doesn’t know about this interrupt therefore you cannot call MQX API from this interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you want use driver which is independent on MQX, I guess that Kernel isr is option what you are looking for. Anyway, you have to use also _bsp_int_init() function for enabling this interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There could be some also issues due to concurrence with MQX SPI driver. Please look at BSP code and check MQX SPI driver initialization. BSPCFG_ENABLE_SPIx in user_config.h should be zero otherwise MQX SPI driver will be initialized in _bsp_init() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 12:18:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/migrating-SPI-driver-to-MQX/m-p/350154#M11282</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2014-09-30T12:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: migrating SPI driver to MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/migrating-SPI-driver-to-MQX/m-p/350155#M11283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&amp;nbsp; a lot RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the actual fix were enable BSPCFG_ENABLE_SPI1 in user_config.h (I´m using SPI1)&lt;/P&gt;&lt;P&gt;and now is working. I installed the interrupt&amp;nbsp; with the MQX ISR manager&lt;/P&gt;&lt;P&gt;_int_install_isr(vector, isr_ptr, isr_data);&lt;/P&gt;&lt;P&gt;_bsp_int_init(vector, priority, subpriority, enable);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 15:32:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/migrating-SPI-driver-to-MQX/m-p/350155#M11283</guid>
      <dc:creator>JULIOOSVALDOANG</dc:creator>
      <dc:date>2014-10-03T15:32:21Z</dc:date>
    </item>
  </channel>
</rss>

