<?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: Trouble with debugger when using RAMFUNC in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-debugger-when-using-RAMFUNC/m-p/990041#M5736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to check the following thread that discuss your question in more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/453898"&gt;https://community.nxp.com/thread/453898&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2020 23:19:43 GMT</pubDate>
    <dc:creator>FelipeGarcia</dc:creator>
    <dc:date>2020-02-06T23:19:43Z</dc:date>
    <item>
      <title>Trouble with debugger when using RAMFUNC</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-debugger-when-using-RAMFUNC/m-p/990038#M5733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;We just started to use RAMFUNC to improve code performance that is too slow with xip in QSPI flash.&lt;/P&gt;&lt;P&gt;Now we have a problem with the debugger. When we set a breakpoint in a RAMFUNC function, and then try to single-step, a long delay happens where nothing happens, and then an error is displayed by the debugger:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Failed to execute MI command:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -data-disassemble -s 50 -e 226 -- 3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error message from debugger back end:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cannot access memory at address 0x20000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem disappears when compiler optimization is off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the Disassembly window is closed, the problem does not happen.&lt;/P&gt;&lt;P&gt;The test is done with the NXP RT1060 devboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached the zipped project.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2020 07:45:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-debugger-when-using-RAMFUNC/m-p/990038#M5733</guid>
      <dc:creator>dh1</dc:creator>
      <dc:date>2020-01-22T07:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with debugger when using RAMFUNC</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-debugger-when-using-RAMFUNC/m-p/990039#M5734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to check the MCUXpresso User Manual in chapter 17.13.5. I will copy the related information below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Due to the distance in the memory map between Flash memory and RAM, you will typically require a “long branch veneer” between the function in RAM and the calling function in Flash. The linker can automatically generate such a veneer for direct function calls, or you can effectively generate your own by using a call via a function pointer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One point to note is that debugging code with a linker generated veneer can sometimes cause problems. This veneer will not have any source level debug information associated with it, so that if you try to step in to a call to your code in RAM, typically the debugger will step over it instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can work around this by single stepping at the instruction level, setting a breakpoint in your RAM code, or by changing the function call from a direct one to a call via a function pointer.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/MCUXpresso_IDE_User_Guide.pdf" title="https://www.nxp.com/docs/en/user-guide/MCUXpresso_IDE_User_Guide.pdf"&gt;https://www.nxp.com/docs/en/user-guide/MCUXpresso_IDE_User_Guide.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, if you are trying to run interrupts from RAM it is recommended to move vector table to RAM as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2020 18:44:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-debugger-when-using-RAMFUNC/m-p/990039#M5734</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-01-27T18:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with debugger when using RAMFUNC</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-debugger-when-using-RAMFUNC/m-p/990040#M5735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe&lt;/P&gt;&lt;P&gt;Is there an example of the easiest way to relocate the vector table to RAM with MCUXPresso?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 10:52:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-debugger-when-using-RAMFUNC/m-p/990040#M5735</guid>
      <dc:creator>dh1</dc:creator>
      <dc:date>2020-02-04T10:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with debugger when using RAMFUNC</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-debugger-when-using-RAMFUNC/m-p/990041#M5736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to check the following thread that discuss your question in more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/453898"&gt;https://community.nxp.com/thread/453898&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 23:19:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-debugger-when-using-RAMFUNC/m-p/990041#M5736</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-02-06T23:19:43Z</dc:date>
    </item>
  </channel>
</rss>

