<?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: Using KBOOT V2 and MQX</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-KBOOT-V2-and-MQX/m-p/514971#M16342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I seem to have got it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my MQX project, I edited the&amp;nbsp;&lt;STRONG&gt;startup_MK22F51212.s&lt;/STRONG&gt; file in the&amp;nbsp;&lt;STRONG&gt;mqx_frdm22f&lt;/STRONG&gt; project found in the KSDK Files directory. &amp;nbsp;In this file I commented&amp;nbsp;DefaultISR 240-254 and also removed the DCD 0xFFFFFFFF value reserved for user TRIM value (is that okay?). &amp;nbsp;In placed of that, I added the BCA area (0x3C0-0x3FF) like it was in the demo project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, I changed the linker file (&lt;STRONG&gt;MK22FN512xxx12_flash.icf&lt;/STRONG&gt;)&amp;nbsp;to define the following symbols:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define symbol __ram_vector_table_size__ = 0x00000400;&lt;BR /&gt;define symbol __ram_vector_table_offset__ = 0x000003FF;&lt;/P&gt;&lt;P&gt;define symbol INTERRUPTS_START = 0x0000A000;&lt;BR /&gt;define symbol INTERRUPTS_END = 0x0000A3FF;&lt;/P&gt;&lt;P&gt;define symbol FLASH_CONFIG_START = 0x0000A400;&lt;BR /&gt;define symbol FLASH_CONFIG_END = 0x0000A40F;&lt;/P&gt;&lt;P&gt;define symbol TEXT_START = 0x0000A410;&lt;BR /&gt;define symbol TEXT_END = 0x0007FFFF;&lt;BR /&gt; &lt;BR /&gt;define symbol RAM_INTERRUPTS_START = 0x1FFF0000;&lt;BR /&gt;define symbol RAM_INTERRUPTS_END = 0x1FFF0000 + __ram_vector_table_offset__;&lt;BR /&gt; &lt;BR /&gt;define symbol DATA_START = RAM_INTERRUPTS_START + __ram_vector_table_size__;&lt;BR /&gt;define symbol DATA_END = 0x1FFFFFFF;&lt;BR /&gt; &lt;BR /&gt;define symbol DATA_2_START = 0x20000000;&lt;BR /&gt;define symbol DATA_2_END = 0x2000FFEF;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2016 13:43:44 GMT</pubDate>
    <dc:creator>kevinlfw</dc:creator>
    <dc:date>2016-10-27T13:43:44Z</dc:date>
    <item>
      <title>Using KBOOT V2 and MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-KBOOT-V2-and-MQX/m-p/514969#M16340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using MQX 5.0.2 that comes with KSDK 1.3.0 for my already developed user application that targets the MK22FN512VLH12.&amp;nbsp; I am using IAR EWARM IDE.&amp;nbsp; It uses the usbd_sdk_mqx_lib.&amp;nbsp; I'm trying to get it to work with the KBOOT v2 bootloader (USB-HID periph. enabled), however I have been unsuccessful at doing so.&amp;nbsp; I've tried editing the startup and system files in the mqx_frdmk22f project, KSDK Files group, and adding crt0.s, however that doesn't work.&amp;nbsp; I've tried a few linker file changes, (trying to place the user application at offset 0xA000) but that didn't help, and I think its due to sections not being named the same name.&amp;nbsp; For instance, when running the application, &lt;STRONG&gt;MQX_init_struct.START_OF_HEAP = (__RW_END &amp;gt; __ZI_END) ? __RW_END : __ZI_END;&lt;/STRONG&gt; ends up setting &lt;STRONG&gt;START_OF_HEAP &lt;/STRONG&gt;to 0x0, and trying to manually set it to 0x1fffb860 does no good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am hoping that someone can take the hello world MQX example project &lt;STRONG&gt;&amp;lt;KSDK_1.3.0 Install Directory&amp;gt;\rtos\mqx\mqx\examples\hello\build\iar\hello_frdmk22f &lt;/STRONG&gt;and make necessary changes to it &amp;amp; the KSDK so that it can be placed at the offset 0xA000 to work with KBOOT V2 and post your solution or/and the description here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 15:32:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-KBOOT-V2-and-MQX/m-p/514969#M16340</guid>
      <dc:creator>kevinlfw</dc:creator>
      <dc:date>2016-06-06T15:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using KBOOT V2 and MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-KBOOT-V2-and-MQX/m-p/514970#M16341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 06:05:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-KBOOT-V2-and-MQX/m-p/514970#M16341</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-10-27T06:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using KBOOT V2 and MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-KBOOT-V2-and-MQX/m-p/514971#M16342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I seem to have got it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my MQX project, I edited the&amp;nbsp;&lt;STRONG&gt;startup_MK22F51212.s&lt;/STRONG&gt; file in the&amp;nbsp;&lt;STRONG&gt;mqx_frdm22f&lt;/STRONG&gt; project found in the KSDK Files directory. &amp;nbsp;In this file I commented&amp;nbsp;DefaultISR 240-254 and also removed the DCD 0xFFFFFFFF value reserved for user TRIM value (is that okay?). &amp;nbsp;In placed of that, I added the BCA area (0x3C0-0x3FF) like it was in the demo project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, I changed the linker file (&lt;STRONG&gt;MK22FN512xxx12_flash.icf&lt;/STRONG&gt;)&amp;nbsp;to define the following symbols:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define symbol __ram_vector_table_size__ = 0x00000400;&lt;BR /&gt;define symbol __ram_vector_table_offset__ = 0x000003FF;&lt;/P&gt;&lt;P&gt;define symbol INTERRUPTS_START = 0x0000A000;&lt;BR /&gt;define symbol INTERRUPTS_END = 0x0000A3FF;&lt;/P&gt;&lt;P&gt;define symbol FLASH_CONFIG_START = 0x0000A400;&lt;BR /&gt;define symbol FLASH_CONFIG_END = 0x0000A40F;&lt;/P&gt;&lt;P&gt;define symbol TEXT_START = 0x0000A410;&lt;BR /&gt;define symbol TEXT_END = 0x0007FFFF;&lt;BR /&gt; &lt;BR /&gt;define symbol RAM_INTERRUPTS_START = 0x1FFF0000;&lt;BR /&gt;define symbol RAM_INTERRUPTS_END = 0x1FFF0000 + __ram_vector_table_offset__;&lt;BR /&gt; &lt;BR /&gt;define symbol DATA_START = RAM_INTERRUPTS_START + __ram_vector_table_size__;&lt;BR /&gt;define symbol DATA_END = 0x1FFFFFFF;&lt;BR /&gt; &lt;BR /&gt;define symbol DATA_2_START = 0x20000000;&lt;BR /&gt;define symbol DATA_2_END = 0x2000FFEF;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 13:43:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-KBOOT-V2-and-MQX/m-p/514971#M16342</guid>
      <dc:creator>kevinlfw</dc:creator>
      <dc:date>2016-10-27T13:43:44Z</dc:date>
    </item>
  </channel>
</rss>

