<?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>Kinetis MicrocontrollersのトピックRe: TWR-K70 using external DDR2 memory with MQX 4</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253190#M7301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fan,&lt;/P&gt;&lt;P&gt;in DDRData configuration program is just running on internal flash, and ddr is used for data storage (if i &lt;SPAN class="alt-edited hps"&gt;understand correctly mqx getting started guide).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DDR is initialized in _bsp_ddr2_setup() function, but it seems to be unusable, in fact i cant write on it using cw memory debug tool (in memory view).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2013 10:07:01 GMT</pubDate>
    <dc:creator>lorenzofornari</dc:creator>
    <dc:date>2013-04-12T10:07:01Z</dc:date>
    <item>
      <title>TWR-K70 using external DDR2 memory with MQX 4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253188#M7299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm devoloping a simple mqx application on twr-k70, with codewarrior 10.3, and i have to use the external ram module (1 gb ddr2).&lt;/P&gt;&lt;P&gt;So i'm trying to debug with DDRData target configuration (getting started guide explains that this is the way to use external ram instead of the internal one, that is only 128k).&lt;/P&gt;&lt;P&gt;As result mqx doesn't start, locking in a loop trying to initialize a lwsem (light weight semaphore component) in mqx() start function in mqx.c file.&lt;/P&gt;&lt;P&gt;With SRAM debug configuration all works properly (but i haven't enough memory).&lt;/P&gt;&lt;P&gt;I have the same problem with mqx 3.8.1 and 4.0, using provided bsps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that ddr module isn't properly initialized, since the global pointer to kernel data _mqx_kernel_data&lt;SPAN class="mce_paste_marker"&gt; has some erratic or uninitialized values (0xbabababa), and the application cannot write on it, nor in the other variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;I found out a bug in ddr2 initialization function: _bsp_ddr2_setup(), in init_hw.c, so i corrected it following the ddr2 init function provided in bare metal sample code, but with the same result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;At last i tried one of the bare metal examples (hello world) with EXTERNAL_DDR build and debug configuration (i&lt;SPAN class="hps"&gt; had some problems&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;references to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;settings file, but i fixed them), and it wont start... locking at first asm instruction...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I know that EXTERNAL_DDR configuration means that the application code is loaded on external ram, while DDRData of mqx project means that che variables are loaded on external ram; but anyway the external ddr module is unusable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Some one has the same issue? Is it a hardware problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 11:15:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253188#M7299</guid>
      <dc:creator>lorenzofornari</dc:creator>
      <dc:date>2013-04-05T11:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70 using external DDR2 memory with MQX 4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253189#M7300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just as a debug method, you can run program in flash or sram to verify the DDR2 after it be initialized. At least, we should make sure the DDR2 is stable enough firstly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 04:09:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253189#M7300</guid>
      <dc:creator>JerryFan</dc:creator>
      <dc:date>2013-04-12T04:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70 using external DDR2 memory with MQX 4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253190#M7301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fan,&lt;/P&gt;&lt;P&gt;in DDRData configuration program is just running on internal flash, and ddr is used for data storage (if i &lt;SPAN class="alt-edited hps"&gt;understand correctly mqx getting started guide).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DDR is initialized in _bsp_ddr2_setup() function, but it seems to be unusable, in fact i cant write on it using cw memory debug tool (in memory view).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 10:07:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253190#M7301</guid>
      <dc:creator>lorenzofornari</dc:creator>
      <dc:date>2013-04-12T10:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70 using external DDR2 memory with MQX 4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253191#M7302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lorenzo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at next thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/324049"&gt;Re: K70 Tower System MQX Application in RAM&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question is already answered here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;CAMC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 17:29:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253191#M7302</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2013-04-12T17:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70 using external DDR2 memory with MQX 4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253192#M7303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;if i understand your answer, my problem is different, since you explain how to execute the whole application in external ddr2, as is in internal ram configuration, conversley i'm trying to use provided INT_FLASH_DDRData build/debug configuration, where application code is executed out of internal flash, and external ddr ram is used for application's variables, dynamic memory and so on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 10:15:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253192#M7303</guid>
      <dc:creator>lorenzofornari</dc:creator>
      <dc:date>2013-04-15T10:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70 using external DDR2 memory with MQX 4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253193#M7304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lorenzo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, you only have to select the right 'Build Configuration' for your project. Select "Int Flash DDRData Debug" or&amp;nbsp;&amp;nbsp; "Int Flash DDRData Release". That configuration does what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 10:59:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253193#M7304</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2013-04-15T10:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70 using external DDR2 memory with MQX 4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253194#M7305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm sorry for my bad explanation, but the problem is just that with provided build/debug configuration mqx won't start.&lt;/P&gt;&lt;P&gt;Neither new project, nor provided demo (hello world, web_hvac... so on) work with ddrdata configuration,while with intsram they work properly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After several attemps, i guess it should be a hardware issue... i'm trying to get another K70 twr to check this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 12:17:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253194#M7305</guid>
      <dc:creator>lorenzofornari</dc:creator>
      <dc:date>2013-04-15T12:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70 using external DDR2 memory with MQX 4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253195#M7306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommanded to run the DDR2 memory test to tell the stablility of the DDR2. You can easily do this using _mem_verify(base, extend). It is always very neccessary to validate the DDR2 memory before using it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 03:29:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253195#M7306</guid>
      <dc:creator>JerryFan</dc:creator>
      <dc:date>2013-04-16T03:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70 using external DDR2 memory with MQX 4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253196#M7307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this check is performed in _mqx function, if(PSP_KERNEL_DATA_VERIFY_ENABLE)&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;it returns "MQX_CORRUPT_MEMORY_SYSTEM".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Anyhow, i've made a test with another twrk70, flashing it with the same .afx, and it works. So it is finally an hardware problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Thank you for replies.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 10:14:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-using-external-DDR2-memory-with-MQX-4/m-p/253196#M7307</guid>
      <dc:creator>lorenzofornari</dc:creator>
      <dc:date>2013-04-19T10:14:21Z</dc:date>
    </item>
  </channel>
</rss>

