<?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 Debugger Losing Connection, Symbols, or... ? in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Debugger-Losing-Connection-Symbols-or/m-p/851577#M1237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been working with MCUXpresso for a while now, and this problem has been a recurring one... Occasionally when debugging, the target is flashed successfully, but then the debugger looses connection or otherwise does not know what is going on. I see something like the attached screenshot. This is happening on my custom hardware as well as the development board OM13092 (LPC54608).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until recently, I was primarily using the LPC-Link 2 with the CMSIS-DAP probe firmware. Recently, I decided to try changing to SEGGER J-Link. This problem occurs with both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most fustrating thing is that this behavior seems to be random. It is usually fixed by some combination of:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Power cycle LPC-Link 2&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Power cycle Target&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Run "Clean Up Debug" in MCUXpresso IDE&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Close MCUXpresso IDE&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently using MCUXpresso IDE v10.3.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll also point out here that I recently found and followed the guidance provided in this article on thread-aware FreeRTOS debugging:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/" title="https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/"&gt;Troubleshooting Tips for FreeRTOS Thread Aware Debugging in Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Mar 2019 16:23:17 GMT</pubDate>
    <dc:creator>mattschrader</dc:creator>
    <dc:date>2019-03-12T16:23:17Z</dc:date>
    <item>
      <title>Debugger Losing Connection, Symbols, or... ?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Debugger-Losing-Connection-Symbols-or/m-p/851577#M1237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been working with MCUXpresso for a while now, and this problem has been a recurring one... Occasionally when debugging, the target is flashed successfully, but then the debugger looses connection or otherwise does not know what is going on. I see something like the attached screenshot. This is happening on my custom hardware as well as the development board OM13092 (LPC54608).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until recently, I was primarily using the LPC-Link 2 with the CMSIS-DAP probe firmware. Recently, I decided to try changing to SEGGER J-Link. This problem occurs with both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most fustrating thing is that this behavior seems to be random. It is usually fixed by some combination of:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Power cycle LPC-Link 2&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Power cycle Target&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Run "Clean Up Debug" in MCUXpresso IDE&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Close MCUXpresso IDE&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently using MCUXpresso IDE v10.3.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll also point out here that I recently found and followed the guidance provided in this article on thread-aware FreeRTOS debugging:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/" title="https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/"&gt;Troubleshooting Tips for FreeRTOS Thread Aware Debugging in Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:23:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Debugger-Losing-Connection-Symbols-or/m-p/851577#M1237</guid>
      <dc:creator>mattschrader</dc:creator>
      <dc:date>2019-03-12T16:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Losing Connection, Symbols, or... ?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Debugger-Losing-Connection-Symbols-or/m-p/851578#M1238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That address (0&lt;SPAN style="font-size: 17.00pt;"&gt;xa4010000) is in off chip ram - do you have any? Whatever, it is outside your application so the debugger has no information to display.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;my guess is some memory corruption- most likely stack. You probably should closely examine your code to see if you can find where you have an overflowing buffer or an uninitialised pointer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;errors like this are really difficult to track down, because they appear random.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;i think it is highly unlikely that there is a hardware or debugger problem - almost certainly it is a software problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;good luck&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 17.00pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 17:35:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Debugger-Losing-Connection-Symbols-or/m-p/851578#M1238</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-03-12T17:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Losing Connection, Symbols, or... ?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Debugger-Losing-Connection-Symbols-or/m-p/851579#M1239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the post and astute observation. Yes, there is off chip RAM but it it is located at 0xa0000000 with size of 0x1000000.&amp;nbsp;After further review I found this in the debugger console:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Downloading 10116 bytes @ address 0x1028ED10 - Verified OK&lt;BR /&gt;J-Link: Flash download: Bank 0 @ 0x00000000: Skipped. Contents already match&lt;BR /&gt;J-Link: Flash download: Bank 1 @ 0x10000000: Skipped. Contents already match&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Writing register (PC = 0xa4010000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Reading all registers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;WARNING: Failed to read memory @ address 0xA4010000&lt;/SPAN&gt;&lt;BR /&gt;Read 4 bytes @ address 0x03000CAA (Data = 0x2DE9F041)&lt;BR /&gt;Read 2 bytes @ address 0x03000CAA (Data = 0x2DE9)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For whatever reason, my launch configuration was setup for big endian. It was trying to set PC to 0xa4010000 instead of 0x1a4. I still don't understand how it would sometimes work with this incorrect setting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 23:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Debugger-Losing-Connection-Symbols-or/m-p/851579#M1239</guid>
      <dc:creator>mattschrader</dc:creator>
      <dc:date>2019-03-12T23:58:09Z</dc:date>
    </item>
  </channel>
</rss>

