<?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: Debugger not showing external SRAM contents in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319019#M14170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It need to modify mem file to enable Flexbus related access memory range, such as below setting:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;range&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;0x60000000 0x6FFFFFFF 4 ReadWrite&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;// Flexbus for external memory&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;reserved&amp;nbsp;&amp;nbsp; 0x70000000 0xDFFFFFFF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, it could see related memory contents with CodeWarrior software.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;BR /&gt;best regards &lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2014 09:27:10 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2014-07-16T09:27:10Z</dc:date>
    <item>
      <title>Debugger not showing external SRAM contents</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319016#M14167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using K60F128M CPU with external SRAM interfaced at address 0x60000000.&lt;/P&gt;&lt;P&gt;SRAM is working properly and I am able to store and retrieve values from the program.&lt;/P&gt;&lt;P&gt;But when trying to see the values loaded on SRAM in the memory view of&amp;nbsp; debugger, it just shows "?????".&lt;/P&gt;&lt;P&gt;Then, I modified the memory configuration file(.mem) as below to match our setup.&lt;/P&gt;&lt;P&gt;After that when I try to start debugging its getting timed out saying "Debugger has lost connection to the target".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea about how to solve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;// All reserved ranges read back 0xBABA...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;reservedchar 0xBA&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;usederivative "MK60F15"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Memory Map:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------------------------------------------------------------------&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;range&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000 0x000FFFFF 4 ReadWrite&amp;nbsp;&amp;nbsp;&amp;nbsp; // 1024KB Code Flash&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;reserved&amp;nbsp;&amp;nbsp; 0x00100000 0x13FFFFFF&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;range&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x14000000 0x14003FFF 4 ReadWrite&amp;nbsp;&amp;nbsp;&amp;nbsp; // 16KB Programming accelleration RAM&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;reserved&amp;nbsp;&amp;nbsp; 0x14004000 0x1FFEFFFF&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;range&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1FFF0000 0x1FFFFFFF 4 ReadWrite&amp;nbsp;&amp;nbsp;&amp;nbsp; // 64KB On chip SRAM (TCML)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;range&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x20000000 0x2000FFFF 4 ReadWrite&amp;nbsp;&amp;nbsp;&amp;nbsp; // 64KB On chip SRAM (TCMU)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;reserved&amp;nbsp;&amp;nbsp; 0x20010000 0x21FFFFFF&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;range&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x22000000 0x221FFFFF 4 ReadWrite&amp;nbsp;&amp;nbsp;&amp;nbsp; // Aliased to TCMU SRAM bitband&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;reserved&amp;nbsp;&amp;nbsp; 0x22200000 0x3FFFFFFF&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;range&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x60000000 0x6001FFFF 4 ReadWrite&amp;nbsp;&amp;nbsp;&amp;nbsp; // Flexbus for external memory&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;reserved&amp;nbsp;&amp;nbsp; 0x60020000 0xDFFFFFFF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Flexbus for external memory&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;reserved&amp;nbsp;&amp;nbsp; 0xE0100000 0xFFFFFFFF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 10:59:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319016#M14167</guid>
      <dc:creator>renjithvamanan</dc:creator>
      <dc:date>2014-07-11T10:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger not showing external SRAM contents</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319017#M14168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Renjith:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this is because the Flex Bus is not configured yet when launching the debug session, so when the debugger attempts to read those addresses, it crashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case this is the problem I attached a script which contains Flex Bus initialization code. Go to Run -&amp;gt; Debug Configurations -&amp;gt; (Select your connection) -&amp;gt; Edit -&amp;gt; Edit (again), and in the "Initialization" tab point to this script file. Check below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Init_file.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45045iEB7FCB5E34ECB421/image-size/large?v=v2&amp;amp;px=999" role="button" title="Init_file.png" alt="Init_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With this the debugger should be able to 'see' the external memory without hanging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!,&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 01:52:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319017#M14168</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-07-15T01:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger not showing external SRAM contents</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319018#M14169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jorge &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this input.&lt;/P&gt;&lt;P&gt;Flex Bus was not initialized in the tcl file as you guessed. But even after using your tcl file,&lt;STRONG&gt; debugger connection is losing&lt;/STRONG&gt; same as before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I tried my same .mem configuration file in another PC and HW board, it worked even without Flex Bus initialization in tcl file.&lt;/P&gt;&lt;P&gt;It worked on the first run as expected and I could view the contents of Ext.SRAM variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this hints help some how ? What could be the reason that it is not working in my debug setup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Renjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 09:59:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319018#M14169</guid>
      <dc:creator>renjithvamanan</dc:creator>
      <dc:date>2014-07-15T09:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger not showing external SRAM contents</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319019#M14170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It need to modify mem file to enable Flexbus related access memory range, such as below setting:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;range&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;0x60000000 0x6FFFFFFF 4 ReadWrite&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;// Flexbus for external memory&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;reserved&amp;nbsp;&amp;nbsp; 0x70000000 0xDFFFFFFF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, it could see related memory contents with CodeWarrior software.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;BR /&gt;best regards &lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 09:27:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319019#M14170</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-07-16T09:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger not showing external SRAM contents</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319020#M14171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned in my original question I have done the necessary modifications to the .mem file. After that .mem file change only my debugger seems to be crashing and connection loss to it happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Renjith&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 09:40:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319020#M14171</guid>
      <dc:creator>renjithvamanan</dc:creator>
      <dc:date>2014-07-16T09:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger not showing external SRAM contents</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319021#M14172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using CodeWarrior provided Flexbus example code? The example code located at C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Kinetis_Examples\k40\flexbus folder.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;BR /&gt;best regards &lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 02:30:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319021#M14172</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-07-17T02:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger not showing external SRAM contents</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319022#M14173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My PC was running XP and it was very slow while debugging. So I had to format and re-install the PC with Windows 7. &lt;/P&gt;&lt;P&gt;Now when I setup everything afresh, Ext.SRAM watch works as expected in my debug setup also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still the reason why it was not working is unknown, but its OK for the time being.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Renjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 09:09:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debugger-not-showing-external-SRAM-contents/m-p/319022#M14173</guid>
      <dc:creator>renjithvamanan</dc:creator>
      <dc:date>2014-07-18T09:09:23Z</dc:date>
    </item>
  </channel>
</rss>

