<?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: MQX 3.8, FNET 1.2.2 bootloader and IAR Embedded Workbench in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173109#M2077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No one on this? I'm not able to find a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2012 20:26:32 GMT</pubDate>
    <dc:creator>pozz</dc:creator>
    <dc:date>2012-07-13T20:26:32Z</dc:date>
    <item>
      <title>MQX 3.8, FNET 1.2.2 bootloader and IAR Embedded Workbench</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173108#M2076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have installed IAR Embedded Workbench, FNET 1.2.2 and MQX 3.8. I'm using TWR-K60N512 + TWR_SER tower system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The FNET bootloader (compiled with IAR) works great with a "barebone" application (always compiled with IAR): I can download the SREC firmware file through TFTP and launch the application from the bootloader with "go" command. It works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to create an application with MQX RTOS. After adding the instruction (to use RAM for vector table)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; #define MQX_ROM_VECTORS 0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in user_config.h file (under &amp;lt;MQX install path&amp;gt;\config\twrk60n512) and rebuilding MQX suite, I started from hello example (&amp;lt;MQX install path&amp;gt;\mqx\examples\hello). I can compile the sample application with IAR and it works (I can see "Hello world" message on OSBDM serial port).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to use this hello application with FNET bootloader, so avoiding the first 48KB of internal Flash where the bootloader stay. So I modified the linker configuration file (intflash.icf) and the result is attached to this message.&lt;/P&gt;&lt;P&gt;Moreover, after reading about a wrong behaviour of IAR, I changed the entry point (enabling the "Override default program entry" linker option, setting the "Entry symbol" to "__boot" that seems the first instruction of MQX for Cortex).&lt;/P&gt;&lt;P&gt;Even with this new linker file, I can start, run and debug the application alone (without the bootloader). It works... I can see the "Hello world" message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last step doesn't work.&lt;/P&gt;&lt;P&gt;I run the bootloader, download the SREC of hello MQX application through TFTP and launch it with "go" command. The starting address seems correct (0xC421), but the bootloader restarts itself. I think it isn't able to launch the application, but I don't know why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 20:50:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173108#M2076</guid>
      <dc:creator>pozz</dc:creator>
      <dc:date>2012-06-19T20:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8, FNET 1.2.2 bootloader and IAR Embedded Workbench</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173109#M2077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No one on this? I'm not able to find a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 20:26:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173109#M2077</guid>
      <dc:creator>pozz</dc:creator>
      <dc:date>2012-07-13T20:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8, FNET 1.2.2 bootloader and IAR Embedded Workbench</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173110#M2078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no good solution; just confirming waht you see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried multiple boot loaders, and multiple apps; all with MQX 3.8.&amp;nbsp; Using both CodeWarrior and IAR. Apps compiled with IAR fail to run from the bootloaders, while apps compiled with CodeWarrior run fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm guessing at this point, but it seems that there is something missing in the compiler specific C startup code for IAR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current work-around for this is to use CodeWarrior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 22:58:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173110#M2078</guid>
      <dc:creator>tadpol</dc:creator>
      <dc:date>2012-08-06T22:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8, FNET 1.2.2 bootloader and IAR Embedded Workbench</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173111#M2079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Project-&amp;gt;Options-&amp;gt;Linker-&amp;gt;Library-&amp;gt;Override default program entry and "__boot" as the entry symbol.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a try and let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2012 22:30:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173111#M2079</guid>
      <dc:creator>pozz</dc:creator>
      <dc:date>2012-08-12T22:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8, FNET 1.2.2 bootloader and IAR Embedded Workbench</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173112#M2080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pozz,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have also modified the link file and I am able to download the .srec file using the bootloader. But I have noticed that on some MQX application builds, the application hangs during initialisation after a new file is bootloaded. But the odd thing is if we powercycle it the application works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you notice anything like this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also would be interested if you figured out a way to make the bootloader region non-modifiable so that the bootloader does not get corrupted in case something goes wrong in the application and modifies the bootloader region.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohsin455&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Aug 2012 08:34:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173112#M2080</guid>
      <dc:creator>Mohsin455</dc:creator>
      <dc:date>2012-08-19T08:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8, FNET 1.2.2 bootloader and IAR Embedded Workbench</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173113#M2081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pozz,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think your linker file is not correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;define symbol __ICFEDIT_region_ROM_start__&amp;nbsp;&amp;nbsp; = 0x0000c420;&lt;/P&gt;&lt;P&gt;define symbol __ICFEDIT_region_ROM_end__&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x0007EFFF; /* (0x0007 ffff - boot parameters) */&lt;/P&gt;&lt;P&gt;define symbol __ICFEDIT_region_RAM_start__&amp;nbsp;&amp;nbsp; = 0x1fff0000;&amp;nbsp; /*int_ vector start here so no need to allocate additional ram */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;define exported symbol __INTERNAL_FLASH_BASE = 0x0000c000;&lt;BR /&gt;define exported symbol __INTERNAL_FLASH_SIZE = 0x00072be0; /*&amp;nbsp;0x0007 ffff - 0x0000 c000 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if these are not right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Mohsin455&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 21:56:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-FNET-1-2-2-bootloader-and-IAR-Embedded-Workbench/m-p/173113#M2081</guid>
      <dc:creator>Mohsin455</dc:creator>
      <dc:date>2012-08-22T21:56:30Z</dc:date>
    </item>
  </channel>
</rss>

