<?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: Symbol F_vector_addr referenced from address 0x00000218 in section .text of file .... is too far away for a R_56800E_WORD16 relocation, which has a range from 0 to 131070 bytes in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Symbol-F-vector-addr-referenced-from-address-0x00000218-in/m-p/466302#M3579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding the libraries for the large memory model:&lt;/P&gt;&lt;P&gt;I loaded bootloader example; of cause this project had a large memory model.&lt;/P&gt;&lt;P&gt;It used the files:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Runtime 56800E lmm.lib&lt;/STRONG&gt; from &lt;STRONG&gt;C:\Program Files\Freescale\CodeWarrior\M56800E Support\runtime_56800E\lib&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MSL C 56800E LMM.lib &lt;/STRONG&gt;from &lt;STRONG&gt;C:\Program Files\Freescale\CodeWarrior\M56800E Support\msl\MSL_C\DSP_56800E\lib&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I substitute these files in Project window/support/lib and the project compiled ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2016 00:53:33 GMT</pubDate>
    <dc:creator>dmitryrogachev</dc:creator>
    <dc:date>2016-01-05T00:53:33Z</dc:date>
    <item>
      <title>Symbol F_vector_addr referenced from address 0x00000218 in section .text of file .... is too far away for a R_56800E_WORD16 relocation, which has a range from 0 to 131070 bytes</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Symbol-F-vector-addr-referenced-from-address-0x00000218-in/m-p/466300#M3577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ERROR: Symbol F_vector_addr referenced from address 0x00000218 in section .text of file .... is too far away for a R_56800E_WORD16 relocation, which has a range from 0 to 131070 bytes&lt;/P&gt;&lt;P&gt;CHIP: MC56F8323 (probably is not important)&lt;/P&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working on CW8.0 and 8.3 and trying to get access to the program address in memory, using the linker command&amp;nbsp; .cmd file, I often get this error&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, In linker command file it will be something like;&lt;/P&gt;&lt;P&gt;........................ cmd begins: ..........................................&lt;/P&gt;&lt;P&gt;MEMORY {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # I/O registers area for on-chip peripherals&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .x_Peripherals (RW)&amp;nbsp;&amp;nbsp; : ORIGIN = 0xF040, LENGTH = 0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # List of all sections specified in the "Build options" tab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Internal vector boot area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .p_Interruptsboot&amp;nbsp; (RWX) : ORIGIN = 0x00020000, LENGTH = 0x0004&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .p_Interrupts&amp;nbsp; (RWX) : ORIGIN = 0x00000000, LENGTH = 0x000000A4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .p_Code&amp;nbsp; (RWX) : ORIGIN = 0x000000A4, LENGTH = 0x00003F5C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .x_Data&amp;nbsp; (RW) : ORIGIN = 0x00000001, LENGTH = 0x00000FFF&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # p_flash_ROM_data mirrors x_Data, mapping to origin and length&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # the "X" flag in "RX" tells the debugger flash p-memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # the p-memory flash is directed to the address determined by AT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # in the data_in_p_flash_ROM section definition&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .p_flash_ROM_data&amp;nbsp; (RX) : ORIGIN = 0x00000001, LENGTH = 0x00000FFF&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Other memory segments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .x_internal_ROM&amp;nbsp; (RW)&amp;nbsp; : ORIGIN = 0x00001000, LENGTH = 0x1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .p_internal_RAM&amp;nbsp; (RWX) : ORIGIN = 0x0002F800, LENGTH = 0x0800&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KEEP_SECTION { interrupt_vectorsboot.text }&lt;/P&gt;&lt;P&gt;KEEP_SECTION { interrupt_vectors.text }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SECTIONS {&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .interrupt_vectorsboot :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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; F_vector_addr = .;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # interrupt vectors boot area&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * (interrupt_vectorsboot.text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;gt; .p_Interruptsboot&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.................... other sections..................................&lt;/P&gt;&lt;P&gt;.............................................................................&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the program:&lt;/P&gt;&lt;P&gt;extern void * _vector_addr;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;========================================&lt;/P&gt;&lt;P&gt;I already changed the settings for the memory models for the assembler [EDIT/sdm pROM-xRAM Settings/M56800E Assembler] to&lt;/P&gt;&lt;P&gt;Default Data Memory Model of 24 bits and Program memory model of 19 bits. It should cover all the memory range within the memory map of my DSC. (56F8323)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to avoid this error?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 17:08:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Symbol-F-vector-addr-referenced-from-address-0x00000218-in/m-p/466300#M3577</guid>
      <dc:creator>dmitryrogachev</dc:creator>
      <dc:date>2016-01-04T17:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol F_vector_addr referenced from address 0x00000218 in section .text of file .... is too far away for a R_56800E_WORD16 relocation, which has a range from 0 to 131070 bytes</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Symbol-F-vector-addr-referenced-from-address-0x00000218-in/m-p/466301#M3578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" data-avatarid="6203" data-content-finding="Community" data-externalid="" data-presence="null" data-userid="16029" data-username="trytohelp" href="https://community.nxp.com/people/trytohelp"&gt;Pascal Irrle&lt;/A&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&amp;nbsp; May 20, 2009 11:13 AM answered a similar question here:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;A href="https://community.nxp.com/message/54213"&gt;Re: Linker Error: symbol too far way for a R_56800E_WORD16 relocation&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;His comments:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The problem is due to a compiler improvment.&lt;/P&gt;&lt;P&gt;In previous version the compiler generated 24 bits access when 16 bits was possible.&lt;/P&gt;&lt;P&gt;The DSC8.o generated "long" instruction to all structure's data fields which are below the first appearance of&lt;/P&gt;&lt;P&gt;the pointer, array or nested structure in large data model when "Globals live in lower memory" checkbox is checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the DSC8.1 We were worked on removing this different behaviour of compiler in generating code for structure&lt;/P&gt;&lt;P&gt;fields at different offsets.&lt;/P&gt;&lt;P&gt;So this performance issue is addressed in the DSC8.1&lt;/P&gt;&lt;P&gt;Now the compiler always makes use of 16-bit access in "small data model" and "large data model + globals live in lower mem".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, if you disable "globals live in lower mem" and it should link fine.&lt;/P&gt;&lt;P&gt;So disabling "globals live in lower mem" is one workaround that is unfortunately losing performance (size, speed).&lt;/P&gt;&lt;P&gt;Another possible solution is to write some simple assembly functions that return the addresses of the symbols with problem&lt;/P&gt;&lt;P&gt;and use those functions as interface with the C code.&lt;/P&gt;&lt;P&gt;This way the performance will not be affected by the "globals live in lower mem" option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;So, the proposed solution is to go to EDIT/project settings/Code Generation/M56800E processor&amp;nbsp; and change to the large DATA model, and don't check "Globals live in lower memory"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works, but the linker generates another error: &lt;STRONG&gt;The file "MSL C 56800E.lib"&amp;nbsp; do not have the same memory model as the project.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So - what library should I use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the libraries for the large memory model:&lt;/P&gt;&lt;P&gt;I loaded bootloader example; of cause this project had a large memory model.&lt;/P&gt;&lt;P&gt;It used the files:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Runtime 56800E lmm.lib&lt;/STRONG&gt; from &lt;STRONG&gt;C:\Program Files\Freescale\CodeWarrior\M56800E Support\runtime_56800E\lib&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MSL C 56800E LMM.lib &lt;/STRONG&gt;from &lt;STRONG&gt;C:\Program Files\Freescale\CodeWarrior\M56800E Support\msl\MSL_C\DSP_56800E\lib&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I substitute these files in Project window/support/lib and the project compiled ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 17:36:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Symbol-F-vector-addr-referenced-from-address-0x00000218-in/m-p/466301#M3578</guid>
      <dc:creator>dmitryrogachev</dc:creator>
      <dc:date>2016-01-04T17:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol F_vector_addr referenced from address 0x00000218 in section .text of file .... is too far away for a R_56800E_WORD16 relocation, which has a range from 0 to 131070 bytes</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Symbol-F-vector-addr-referenced-from-address-0x00000218-in/m-p/466302#M3579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding the libraries for the large memory model:&lt;/P&gt;&lt;P&gt;I loaded bootloader example; of cause this project had a large memory model.&lt;/P&gt;&lt;P&gt;It used the files:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Runtime 56800E lmm.lib&lt;/STRONG&gt; from &lt;STRONG&gt;C:\Program Files\Freescale\CodeWarrior\M56800E Support\runtime_56800E\lib&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MSL C 56800E LMM.lib &lt;/STRONG&gt;from &lt;STRONG&gt;C:\Program Files\Freescale\CodeWarrior\M56800E Support\msl\MSL_C\DSP_56800E\lib&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I substitute these files in Project window/support/lib and the project compiled ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 00:53:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Symbol-F-vector-addr-referenced-from-address-0x00000218-in/m-p/466302#M3579</guid>
      <dc:creator>dmitryrogachev</dc:creator>
      <dc:date>2016-01-05T00:53:33Z</dc:date>
    </item>
  </channel>
</rss>

