<?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>CodeWarrior Development ToolsのトピックHas anyone had any success with -largeAddrInSdm  compiler option ?</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Has-anyone-had-any-success-with-largeAddrInSdm-compiler-option/m-p/628500#M5382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The DSC is 56f84763.&lt;/P&gt;&lt;P&gt;It has a secondary data flash from X:0x8000 to X:0xBFFF and my segment starts at 0xA000.&lt;/P&gt;&lt;P&gt;I'm using small data model.&lt;/P&gt;&lt;P&gt;I place my const.data in that segment and linker complains that the&amp;nbsp;16 bit SIGNED displacement in small data model cannot reach my memory.&lt;/P&gt;&lt;P&gt;Ok, I discover that the compiler can generate the correct "far" addressing even in SDM.&lt;/P&gt;&lt;P&gt;Very well, but when I put the flag in compiler command tool the disassembled object file shows a 16 bit relocation record.&lt;/P&gt;&lt;P&gt;The linker still complains, nothing changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: no problems in putting code there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Mar 2017 19:38:08 GMT</pubDate>
    <dc:creator>robertogatti72</dc:creator>
    <dc:date>2017-03-07T19:38:08Z</dc:date>
    <item>
      <title>Has anyone had any success with -largeAddrInSdm  compiler option ?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Has-anyone-had-any-success-with-largeAddrInSdm-compiler-option/m-p/628500#M5382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The DSC is 56f84763.&lt;/P&gt;&lt;P&gt;It has a secondary data flash from X:0x8000 to X:0xBFFF and my segment starts at 0xA000.&lt;/P&gt;&lt;P&gt;I'm using small data model.&lt;/P&gt;&lt;P&gt;I place my const.data in that segment and linker complains that the&amp;nbsp;16 bit SIGNED displacement in small data model cannot reach my memory.&lt;/P&gt;&lt;P&gt;Ok, I discover that the compiler can generate the correct "far" addressing even in SDM.&lt;/P&gt;&lt;P&gt;Very well, but when I put the flag in compiler command tool the disassembled object file shows a 16 bit relocation record.&lt;/P&gt;&lt;P&gt;The linker still complains, nothing changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: no problems in putting code there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 19:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Has-anyone-had-any-success-with-largeAddrInSdm-compiler-option/m-p/628500#M5382</guid>
      <dc:creator>robertogatti72</dc:creator>
      <dc:date>2017-03-07T19:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone had any success with -largeAddrInSdm  compiler option ?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Has-anyone-had-any-success-with-largeAddrInSdm-compiler-option/m-p/628501#M5383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Half solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The folks at Freescale put "-largeAddrInSdm" in the documentation, but "-largeaddrinsdm" in the compiler code.&lt;/P&gt;&lt;P&gt;So the latter works and the former doesn't.&lt;/P&gt;&lt;P&gt;(Seems like&amp;nbsp;an UpperCase call is missing in the compiler..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, now since I have a bunch of strings in the secondary flash, I declare them as unsigned chars of 1 byte.&lt;BR /&gt;The 56F8000Ex core doubles the byte addresses (like in move.bp) and this means that all word-addresses beyond 0x8000&lt;BR /&gt;become byte-addresses beyond 0x10000 (4 zeros).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is over the 16 bit maximum displacement of the Small Data Model and the Linker complains that it is too far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&amp;gt;is too far away for a R_56800E_BYTE16 relocation, which has a range from 0 to&lt;BR /&gt;&amp;gt;65535 bytes"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there is this limitation in using the Secondary Flash for data: you cannot use Byte addressing for objects there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is pretty bad, because to put arrays of constant chars in ram is a big waste, and to put them in Program Memory you must name them with an identifier, because the compiler cannot generate program memory addressable string constants&amp;nbsp;(no way I'm aware of...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps whoever wants to wrestle with these things.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 20:53:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Has-anyone-had-any-success-with-largeAddrInSdm-compiler-option/m-p/628501#M5383</guid>
      <dc:creator>robertogatti72</dc:creator>
      <dc:date>2017-03-07T20:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone had any success with -largeAddrInSdm  compiler option ?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Has-anyone-had-any-success-with-largeAddrInSdm-compiler-option/m-p/628502#M5384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Roberto,&lt;/P&gt;&lt;P&gt;yes, the DSP56800EX generally uses word address(16 bits data), but supports byte address, in the case, the word address will shift one bit from word address and becommes byte address..&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 07:35:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Has-anyone-had-any-success-with-largeAddrInSdm-compiler-option/m-p/628502#M5384</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-03-16T07:35:39Z</dc:date>
    </item>
  </channel>
</rss>

