<?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: Fatal(F1031) with growing buffer size in DDR in CodeWarrior for StarCore</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Fatal-F1031-with-growing-buffer-size-in-DDR/m-p/172563#M39</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you a lot. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2012 08:32:10 GMT</pubDate>
    <dc:creator>s_kalop</dc:creator>
    <dc:date>2012-11-14T08:32:10Z</dc:date>
    <item>
      <title>Fatal(F1031) with growing buffer size in DDR</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Fatal-F1031-with-growing-buffer-size-in-DDR/m-p/172561#M37</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I have a project with SmartDSP and *.appli file which i use for buffer[] data placement.&lt;/P&gt;&lt;P&gt;So&lt;/P&gt;&lt;P&gt;*.appli looks like&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;DDR0_shared__data_____cacheable_wb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ".shared_data_ddr0"&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;place (_buffer)&lt;/TD&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;in DDR0_shared__data_____cacheable_wb&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;os_msc815x_link.l3k linker file looks like &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;descriptor_shared_data_ddr0 {&lt;/P&gt;&lt;P&gt;&amp;nbsp; .shared_data_ddr0&lt;/P&gt;&lt;P&gt;&amp;nbsp; .shared_data_ddr0_bss&lt;/P&gt;&lt;P&gt;&amp;nbsp; } &amp;gt; shared_data_ddr0_descriptor;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;address_translation (*) map11 {&lt;/P&gt;&lt;P&gt;..&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shared_data_ddr0_descriptor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SYSTEM_DATA_MMU_DEF): SHARED_DDR0;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;and os_msc815x_link_app.l3k looks like&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SYSTEM_DATA_MMU_DEF = MMU_DATA_DEF_SYSTEM | &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MMU_DATA_DEF_WPERM_SUPER |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MMU_DATA_DEF_RPERM_SUPER |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MMU_DATA_BURST_SIZE_4 |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MMU_DATA_CACHEABLE_WRITEBACK |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MMU_DATA_PREFETCH_ENABLE |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MMU_DATA_L2_CACHEABLE_WRITEBACK;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When buffer[]'s size reach 8Mbyte i've got linker error:&lt;/P&gt;&lt;P&gt;[LNK,3,6999,50,.../os_msc815x_link.l3k]: Fatal(F1031): LCF configuration: in core c0, task task0_c0: virtual memory 'shared_data_ddr0_descriptor'(org=0x40180000, size=0x00800000) is not aligned to MATT/MMU constraints on address and size.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i reduced size - it's OK. What is my fault? &lt;/P&gt;&lt;P&gt;I use msc8156 ADS board with 2Gbyte DDR&lt;/P&gt;&lt;P&gt;Thanks&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;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&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, 13 Nov 2012 13:01:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Fatal-F1031-with-growing-buffer-size-in-DDR/m-p/172561#M37</guid>
      <dc:creator>s_kalop</dc:creator>
      <dc:date>2012-11-13T13:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal(F1031) with growing buffer size in DDR</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Fatal-F1031-with-growing-buffer-size-in-DDR/m-p/172562#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SC3850 core defines some alignment and boundary constraint on MMU descriptors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The alignment and boundary constraints on MMU descriptor are described in the&lt;/P&gt;&lt;P&gt;MSC8156 SC3850 DSP Subsystem Reference Manual, section&lt;/P&gt;&lt;P&gt;"4.2.2.3.1 Aligned Segment Programming Model" and&lt;/P&gt;&lt;P&gt;"4.2.2.3.2 Flexible Segment Programming Model".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that flexible segment programming model is only available for MMU Descriptors which size is &amp;lt; 8Mb -64Kb.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;In order to be able to link your application you need to make sure the MMU descriptor is aligned properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Perhaps by moving it at the beginning of DDR memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 07:21:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Fatal-F1031-with-growing-buffer-size-in-DDR/m-p/172562#M38</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-11-14T07:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal(F1031) with growing buffer size in DDR</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Fatal-F1031-with-growing-buffer-size-in-DDR/m-p/172563#M39</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you a lot. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 08:32:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Fatal-F1031-with-growing-buffer-size-in-DDR/m-p/172563#M39</guid>
      <dc:creator>s_kalop</dc:creator>
      <dc:date>2012-11-14T08:32:10Z</dc:date>
    </item>
  </channel>
</rss>

