<?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: 56800E Linker Command file  for 56F8367 question in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648687#M5682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brain.&lt;/P&gt;&lt;P&gt;see this demo code *.cmd file, const data is defined in x_RAM. thus string "table" and "test" are allocated in x_RAM.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22395i1AC458BE581D5501/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your application, if you don't want const code allocation in x_RAM, please set it to the PFLASH or other ROM section that you want. This can distribute const data to ROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&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>Mon, 19 Jun 2017 03:12:44 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2017-06-19T03:12:44Z</dc:date>
    <item>
      <title>56800E Linker Command file  for 56F8367 question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648679#M5674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Tool: Codewarrior tool for DSC56800/E version 8.3 build 091203&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;target: 56F8367 processor&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I'm having issue of string constant. The code below to initialize a Global char array does not work (the array elements have wrong data when later being read out as ex: serial_dr = String[0] does not TX out ascii H correctly) :&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;char String[] = "Hello";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// defined as global variable&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;However, when assigning the array individually in main(), as below, it works (serial_dr=String[1] does send out 'e' ascii)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;String[0]='H';&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;String[1]='e';&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;String[2]='l';&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;String[3]='l';&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;String[4]='o';&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;String[5]='\0';&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I looked into the Linker command file trying to understand how the tool writing the "Hello" string into the array. Does the tool write the string "Hello" into p_flash_ROM_data(RX) (which is located in the program flash memory block as the executable code), and then when the code runs after power reset, the code copies the string from p_flash into the array String[] (in internal RAM)?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;(It seems the p_flash_ROM_data section is located right after the executing code section. How does the tool know if the p_flash_ROM_data does not written over the chip's p_flash ROM total area with a very large string constant for example?)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;MEMORY &lt;BR /&gt;{&lt;BR /&gt;.p_interrupts_ROM (RX) : ORIGIN = 0x0000, LENGTH = 0x00AC # reserved for interrupts&lt;BR /&gt;.p_flash_ROM (RX) : ORIGIN = 0x00AC, LENGTH = 0x3FF54 # 256K words contiguous flash minus interrupt space&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;# p_flash_ROM_data mirrors internal xRAM, mapping to origin and length&lt;BR /&gt;# the "X" flag in "RX" tells the debugger to download to p-memory.&lt;BR /&gt;# the download to p-memory is directed to the address determined by AT&lt;BR /&gt;# in the section definition below.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.p_flash_ROM_data (RX) : ORIGIN = 0x0001, LENGTH = 0x3FFF # internal xRAM mirror&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;.p_boot_flash_ROM (RX) : ORIGIN = 0x40000, LENGTH = 0x4000 # 16K words &lt;BR /&gt;# .p_reserved : ORIGIN = 0x44000, LENGTH = 0xB800 # 46K words&lt;BR /&gt;.p_internal_RAM (RWX) : ORIGIN = 0x4F800, LENGTH = 0x0800 # 2K words&lt;BR /&gt;.p_external_RAM (RWX) : ORIGIN = 0x50000, LENGTH = 0x0000 # max available &lt;BR /&gt;.x_internal_RAM (RW) : ORIGIN = 0x0001, LENGTH = 0x3FFF &lt;BR /&gt;.x_flash_ROM (RW) : ORIGIN = 0x4000, LENGTH = 0x4000 &lt;BR /&gt;.x_external_RAM (RW) : ORIGIN = 0x8000, LENGTH = 0x7000 &lt;BR /&gt;.x_onchip_peripherals (RW) : ORIGIN = 0xF000, LENGTH = 0x1000 &lt;BR /&gt;.x_external_RAM_2 (RW) : ORIGIN = 0x10000, LENGTH = 0xFEFF00 &lt;BR /&gt;.x_EOnCE (RW) : ORIGIN = 0xFFFF00, LENGTH = 0x0000 &lt;BR /&gt;}&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thank you,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Brian&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Sorry that I posted this earlier on Classic/legacy, but think that site does not get the same exposure as this site.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 23:41:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648679#M5674</guid>
      <dc:creator>bdang</dc:creator>
      <dc:date>2017-02-17T23:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: 56800E Linker Command file  for 56F8367 question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648680#M5675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for contacting us.&lt;/P&gt;&lt;P&gt;The attached project is a small example for place data at a specific address.&lt;/P&gt;&lt;P&gt;Can you please refer this demo to develop yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&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, 28 Feb 2017 07:14:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648680#M5675</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-02-28T07:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: 56800E Linker Command file  for 56F8367 question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648681#M5676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the sample project but for some reasons when open the project *.mcp file, it didn't open properly. See below. What did I do wrong?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14981i0073ECDFF49F570C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 01:35:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648681#M5676</guid>
      <dc:creator>bdang</dc:creator>
      <dc:date>2017-03-04T01:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: 56800E Linker Command file  for 56F8367 question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648682#M5677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Brain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please open IDE menu "Edit" "preference", check "use text-based projects". then restart Codewarrior. import the demo project. it should work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14934i5B96DC5D8EDEA591/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&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>Mon, 06 Mar 2017 03:36:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648682#M5677</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-03-06T03:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: 56800E Linker Command file  for 56F8367 question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648683#M5678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked "Use Text based project" as instructed, then clicked on the project file *.mcp, but still had the same problem of opening the project. Might be I didn't read you correctly. You said "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;then restart Codewarrior. import the demo project. it should work."&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;You wrote "import the demo project" and so I also tried "File" , "Import Project", but there is no *.xml file to open.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I'm lost here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Brian&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 21:35:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648683#M5678</guid>
      <dc:creator>bdang</dc:creator>
      <dc:date>2017-03-23T21:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: 56800E Linker Command file  for 56F8367 question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648684#M5679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed this instruction found on the old post of Fiona Kuang, and I was able to open your sample project:&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 8.5pt;"&gt;2)&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 8.5pt;"&gt; Or in your CW g&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 8.5pt;"&gt;o to File-&amp;gt;Import project Browse for the project location and set the "objects of" field to "All Files" Select the *.mcp file and click open Now in the window "Name new project as:" you should name your project and select Save. By doing any of the above you should be able to open your project."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 01:58:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648684#M5679</guid>
      <dc:creator>bdang</dc:creator>
      <dc:date>2017-03-24T01:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: 56800E Linker Command file  for 56F8367 question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648685#M5680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good! Thanks for the sharing.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jennie Zhang.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 09:22:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648685#M5680</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-05-25T09:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: 56800E Linker Command file  for 56F8367 question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648686#M5681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry that I was tied up with other projects until recently. I looked into your sample project after linking, and found the two const arrays were placed in the&amp;nbsp;&amp;nbsp;.x_RAM &amp;nbsp; section, instead of pflash ROM section. Why would one waste RAM space for const instead of using code flash ROM? The&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;target is a 56F8367 processor&amp;nbsp;with plenty of space for code memory. How would you do to assign these const (and any string constants such as in error_message="Motor is overheated!") to Code flash rom memory?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;const int table[5] = {0,1,2,3,4};&lt;BR /&gt;const int test[5] = {3, 4, 5,6,7};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 19:46:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648686#M5681</guid>
      <dc:creator>bdang</dc:creator>
      <dc:date>2017-06-16T19:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: 56800E Linker Command file  for 56F8367 question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648687#M5682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brain.&lt;/P&gt;&lt;P&gt;see this demo code *.cmd file, const data is defined in x_RAM. thus string "table" and "test" are allocated in x_RAM.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22395i1AC458BE581D5501/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your application, if you don't want const code allocation in x_RAM, please set it to the PFLASH or other ROM section that you want. This can distribute const data to ROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&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>Mon, 19 Jun 2017 03:12:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56800E-Linker-Command-file-for-56F8367-question/m-p/648687#M5682</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-06-19T03:12:44Z</dc:date>
    </item>
  </channel>
</rss>

