<?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>Digital Signal Controllers中的主题 Quick Start for DSC: ftfl.h not working</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Quick-Start-for-DSC-ftfl-h-not-working/m-p/721068#M1149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to add eeprom function to my project with MC56F82313 and assisted by DSC56800EX_Quick_Start_r2.6. I am trying to use &lt;STRONG&gt;ftfl.h&lt;/STRONG&gt; (by following example program &lt;STRONG&gt;flash_e2prom.c&lt;/STRONG&gt;) but it doesn't work.&lt;/P&gt;&lt;P&gt;The problem is obviously in the base address of FTFL registers (0x1c780) which is beyond 0xffff limit. In &lt;STRONG&gt;arch.h&lt;/STRONG&gt; file these "far" registers are put in specific structure "&lt;EM&gt;ArchIOFar&lt;/EM&gt;" but it is not recognised by the compiler. At the line "&lt;EM&gt;ioctl(FTFL, FTFL_INIT, NULL);&lt;/EM&gt;" it returns an error &lt;EM&gt;"Ftfl is not a member of class 'struct'"&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I tried to overcome it by replacing definition in &lt;STRONG&gt;ftfl.h&lt;/STRONG&gt;: &lt;EM&gt;"#define FTFL (&amp;amp;ArchIO.Ftfl)"&lt;/EM&gt; with a new definition: &lt;EM&gt;"#define FTFL (&amp;amp;ArchIOFar.Ftfl)"&lt;/EM&gt;. Now compiler errors disspeared but there are new linker errors:&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;...is too far away for a R_56800E_WORD16 relocation, which has a range from 0 to 131070 bytes"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;BTW, 0x1c780 &lt;STRONG&gt;is lower&lt;/STRONG&gt; than 131070!&lt;/P&gt;&lt;P&gt;Is there a way to solve this in QS? Would it be better to try with Processor Expert?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many tanks for help, Ljubomir&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jan 2018 10:37:01 GMT</pubDate>
    <dc:creator>ljubomirkopac</dc:creator>
    <dc:date>2018-01-15T10:37:01Z</dc:date>
    <item>
      <title>Quick Start for DSC: ftfl.h not working</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Quick-Start-for-DSC-ftfl-h-not-working/m-p/721068#M1149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to add eeprom function to my project with MC56F82313 and assisted by DSC56800EX_Quick_Start_r2.6. I am trying to use &lt;STRONG&gt;ftfl.h&lt;/STRONG&gt; (by following example program &lt;STRONG&gt;flash_e2prom.c&lt;/STRONG&gt;) but it doesn't work.&lt;/P&gt;&lt;P&gt;The problem is obviously in the base address of FTFL registers (0x1c780) which is beyond 0xffff limit. In &lt;STRONG&gt;arch.h&lt;/STRONG&gt; file these "far" registers are put in specific structure "&lt;EM&gt;ArchIOFar&lt;/EM&gt;" but it is not recognised by the compiler. At the line "&lt;EM&gt;ioctl(FTFL, FTFL_INIT, NULL);&lt;/EM&gt;" it returns an error &lt;EM&gt;"Ftfl is not a member of class 'struct'"&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I tried to overcome it by replacing definition in &lt;STRONG&gt;ftfl.h&lt;/STRONG&gt;: &lt;EM&gt;"#define FTFL (&amp;amp;ArchIO.Ftfl)"&lt;/EM&gt; with a new definition: &lt;EM&gt;"#define FTFL (&amp;amp;ArchIOFar.Ftfl)"&lt;/EM&gt;. Now compiler errors disspeared but there are new linker errors:&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;...is too far away for a R_56800E_WORD16 relocation, which has a range from 0 to 131070 bytes"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;BTW, 0x1c780 &lt;STRONG&gt;is lower&lt;/STRONG&gt; than 131070!&lt;/P&gt;&lt;P&gt;Is there a way to solve this in QS? Would it be better to try with Processor Expert?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many tanks for help, Ljubomir&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 10:37:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Quick-Start-for-DSC-ftfl-h-not-working/m-p/721068#M1149</guid>
      <dc:creator>ljubomirkopac</dc:creator>
      <dc:date>2018-01-15T10:37:01Z</dc:date>
    </item>
  </channel>
</rss>

