<?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 Booting from NOR in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Booting-from-NOR/m-p/249360#M9584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Everyone,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm using MPC5125 processor board.I'm trying to load my application to flash through the serial port transfer. I'm sending the binary file of mqx application say for example helloworld example application in MQX 3.8 through serial port and written it to flash. Its been successfully transferred and written but i'm not able to boot the same. After i successfully transfer and write to flash i'm copying the flash content to SDRAM and executing the following command to boot from flash:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;boot = (pointer)(_boot_addr);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;STRONG style="font-size: 12pt; line-height: 1.5em;"&gt;(*boot)();&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Here _boot_addr would be the virtual address of __start of helloworld which can be got by the map file generated. The first issue is, i'm not able to copy the flash content to SDRAM completely its hanging, may be the file transfer&amp;nbsp; application and the helloworld application addresses are clashing.&lt;/P&gt;&lt;P style="text-align: left;"&gt;I have set &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; rom:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x00010000, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ram:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x00400000,&lt;/P&gt;&lt;P&gt;in .lcf file of HELLOWORLD application with the same addresses given in the project setting in Linker section of Generate ROM img. and generating 1 binary file(i use the same binary file for loading into flash and booting). The file transfer application is set to ram : 0x00000000. It hangs when i try to write the flash content to SDRAM.Can anyone let me where i'm going wrong?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; text-align: left;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: left;"&gt;If the above doesn't work can i use the LOAD command in the .lcf file and directly execute from NOR instead of copying it to SDRAM and executing. Can anyone let me know about the proper usage and the struct for LOAD? &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;if anyone can offer any insight, advice, guidance or suggestions I would surely appreciate. Thanks!&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;STRONG style="font-size: 12pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;STRONG style="font-size: 12pt; line-height: 1.5em;"&gt;~&lt;/STRONG&gt;Shweta&lt;STRONG style="font-size: 12pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2013 11:19:44 GMT</pubDate>
    <dc:creator>shweta</dc:creator>
    <dc:date>2013-05-21T11:19:44Z</dc:date>
    <item>
      <title>Booting from NOR</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Booting-from-NOR/m-p/249360#M9584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Everyone,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm using MPC5125 processor board.I'm trying to load my application to flash through the serial port transfer. I'm sending the binary file of mqx application say for example helloworld example application in MQX 3.8 through serial port and written it to flash. Its been successfully transferred and written but i'm not able to boot the same. After i successfully transfer and write to flash i'm copying the flash content to SDRAM and executing the following command to boot from flash:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;boot = (pointer)(_boot_addr);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;STRONG style="font-size: 12pt; line-height: 1.5em;"&gt;(*boot)();&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Here _boot_addr would be the virtual address of __start of helloworld which can be got by the map file generated. The first issue is, i'm not able to copy the flash content to SDRAM completely its hanging, may be the file transfer&amp;nbsp; application and the helloworld application addresses are clashing.&lt;/P&gt;&lt;P style="text-align: left;"&gt;I have set &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; rom:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x00010000, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ram:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org = 0x00400000,&lt;/P&gt;&lt;P&gt;in .lcf file of HELLOWORLD application with the same addresses given in the project setting in Linker section of Generate ROM img. and generating 1 binary file(i use the same binary file for loading into flash and booting). The file transfer application is set to ram : 0x00000000. It hangs when i try to write the flash content to SDRAM.Can anyone let me where i'm going wrong?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; text-align: left;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: left;"&gt;If the above doesn't work can i use the LOAD command in the .lcf file and directly execute from NOR instead of copying it to SDRAM and executing. Can anyone let me know about the proper usage and the struct for LOAD? &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;if anyone can offer any insight, advice, guidance or suggestions I would surely appreciate. Thanks!&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;STRONG style="font-size: 12pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;STRONG style="font-size: 12pt; line-height: 1.5em;"&gt;~&lt;/STRONG&gt;Shweta&lt;STRONG style="font-size: 12pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 11:19:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Booting-from-NOR/m-p/249360#M9584</guid>
      <dc:creator>shweta</dc:creator>
      <dc:date>2013-05-21T11:19:44Z</dc:date>
    </item>
  </channel>
</rss>

