<?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: MQX:  Customizing a BSP for new hardware</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292986#M9420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am facing a similar fate, being a new user of MQX &amp;amp; Kinetis, and having to create a BSP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initial evaluation is that MQX is basically a good system. Designed by Canadians, it should be. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it seems the Freescale hardware, software, and documentation are all over the map in terms of interoperability. There is very little alignment such that things actually work out-of-the-box. So it appears that working with this stuff will be something like the old days, where you hit the books hard, and after 3 days you might have an LED flashing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 May 2013 20:26:39 GMT</pubDate>
    <dc:creator>DustyStew</dc:creator>
    <dc:date>2013-05-06T20:26:39Z</dc:date>
    <item>
      <title>MQX:  Customizing a BSP for new hardware</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292982#M9416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to develop a BSP based upon bsp_twrk60f120m - the difference between the TOWER version and MY version is the absence of a 12 MHz source - I only use a 50 MHz source.&amp;nbsp; I cloned the BSP over to my BSP, and I know I need to change clock settings - I am just not sure where to do it.&amp;nbsp; Note that I developed a "test" application to check out peripherals that does NOT use MQX - just Processor Expert.&amp;nbsp; The non-RTOS version worked fine.&amp;nbsp; I just want to be able to run my RTOS.&amp;nbsp; I am attaching a schematic of my system - I would appreciate any ideas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 22:15:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292982#M9416</guid>
      <dc:creator>kerose98</dc:creator>
      <dc:date>2013-05-01T22:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: MQX:  Customizing a BSP for new hardware</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292983#M9417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I ported MQX to our EPD evaluation board running with K10,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified&lt;/P&gt;&lt;P&gt;void _bsp_initialize_hardware(void) &lt;/P&gt;&lt;P&gt;function in&lt;/P&gt;&lt;P&gt;BSP Files\bsp_cm.c&lt;/P&gt;&lt;P&gt;to reflect our hardware settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 00:13:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292983#M9417</guid>
      <dc:creator>Rhyme</dc:creator>
      <dc:date>2013-05-02T00:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: MQX:  Customizing a BSP for new hardware</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292984#M9418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rhyme is correct, that function is part of the MQX initialization sequence where the very basic configuration is setup. Anything that you would need to have initialized before an RTOS could even start, like the clocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The typical files you'd be modifying when porting to a new board are all in the BSP folder (\mqx\source\bsp\&amp;lt;board_name&amp;gt;), and are:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;bsp_cm.c&lt;/STRONG&gt; - Initialize clocks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;init_hw.c&lt;/STRONG&gt; - Initialize Flexbus, DDR, etc&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;init_gpio.c&lt;/STRONG&gt; - Initialize the specific pin muxing needed for a peripheral module&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;init_*.c&lt;/STRONG&gt; - Set the parameters for a module (baud rate, buffer size, etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in \config\&amp;lt;board_name&amp;gt;\&lt;STRONG&gt;user_config.h&lt;/STRONG&gt; you would set which UART/SPI/I2C/etc you would want to use on your board. &lt;/P&gt;&lt;P&gt;Those #defines are then used in &lt;STRONG&gt;init_bsp.c&lt;/STRONG&gt; to determine which modules to initialize. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 22:24:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292984#M9418</guid>
      <dc:creator>anthony_huereca</dc:creator>
      <dc:date>2013-05-02T22:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: MQX:  Customizing a BSP for new hardware</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292985#M9419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In continuing this work, I am having a challenging time getting my system to run.&amp;nbsp; The only difference between my board and the &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;bsp_twrk60f120m&lt;/SPAN&gt;:&amp;nbsp; My clocks are the 50 MHz oscillator and the 32.768 kHz crystal (just like on bsp_twrk60f120m) - I do NOT have the 12 MHz clock/crystal.&amp;nbsp; Given that is the ONLY change, how do I modify the files?&amp;nbsp; I am going through trial-and-error while looking at the microcontroller manual, but I am having a hard time getting this up.&amp;nbsp; I need more in-depth information - I can't just keep guessing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 19:34:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292985#M9419</guid>
      <dc:creator>kerose98</dc:creator>
      <dc:date>2013-05-06T19:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: MQX:  Customizing a BSP for new hardware</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292986#M9420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am facing a similar fate, being a new user of MQX &amp;amp; Kinetis, and having to create a BSP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initial evaluation is that MQX is basically a good system. Designed by Canadians, it should be. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it seems the Freescale hardware, software, and documentation are all over the map in terms of interoperability. There is very little alignment such that things actually work out-of-the-box. So it appears that working with this stuff will be something like the old days, where you hit the books hard, and after 3 days you might have an LED flashing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 20:26:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292986#M9420</guid>
      <dc:creator>DustyStew</dc:creator>
      <dc:date>2013-05-06T20:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: MQX:  Customizing a BSP for new hardware</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292987#M9421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Kevin:&lt;/P&gt;&lt;P&gt;Have you tested your board initialization with bare-metal application (= without MQX) , this could facilitate an initialization process. Or use Processor Expert, and then copy functional clocking initialization into __pe_initialize_hardware.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;@Thomas:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;once you work it out, post what could be improved :smileywink:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;c0170&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 05:30:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292987#M9421</guid>
      <dc:creator>c0170</dc:creator>
      <dc:date>2013-05-07T05:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: MQX:  Customizing a BSP for new hardware</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292988#M9422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to assimilate all the answers to find a solution.&amp;nbsp; It turns out that I had 2 problems:&amp;nbsp; Clocks and pin assignment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) With clocking, I used the "processor expert" in a non-RTOS project that worked for my timing setup.&amp;nbsp; Using the BSP from an appropriate existing tower board (in this case &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;bsp_twrk60f120m&lt;/SPAN&gt;), I set up the clock accordingly - the difference in my board is that I do not have a 12 MHz clock source (although I do have the 50 MHz and 32.768 kHz sources connected in the same way as on the tower board).&amp;nbsp; This at least got the RTOS running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) I did not have RS-232 communications - As suggested, I modified _bsp_serial_io_init in init_gpio.c from my new BSP.&amp;nbsp; I modified the code for the case of UART3.&amp;nbsp; Now I have communications from hello.c!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(3) I also tried out the micro-SD sample program on my new board, and it now runs without modifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(4) Here is a useful tool I think Freescale could develop:&amp;nbsp; It would be an enhancement to the BSP wizard.&amp;nbsp; It would ask about external clocks and where they are connected and what they are.&amp;nbsp; You can make that kind of selection in the Processor Expert, but you have to be an "expert" on the processor to do so.&amp;nbsp; The PCR adds a layer of complexity.&amp;nbsp; After verifying that the clock settings are good, the wizard could then go pin-by-pin as to functionality and allow the user to specify constants and variables.&amp;nbsp; Such a wizard would save much frustration!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, I did use the BSP cloning wizard - that helped immensely!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend a comprehensive set of instructions with examples for developing a BSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your assistance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 20:43:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-Customizing-a-BSP-for-new-hardware/m-p/292988#M9422</guid>
      <dc:creator>kerose98</dc:creator>
      <dc:date>2013-05-07T20:43:00Z</dc:date>
    </item>
  </channel>
</rss>

