<?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>i.MX ProcessorsのトピックDebug imx8 M4 on DRAM with Eclipse</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Debug-imx8-M4-on-DRAM-with-Eclipse/m-p/1573197#M199091</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a custom board based on imx8m mini and I need to develop an application on the M4 core.&lt;BR /&gt;I'm testing a very simple program that blinks a led. I started from the example found on the SDK (v 2.12.1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run the program on TCM I can work fine in all the cases I use: following the&amp;nbsp;AN&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5317.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN5317.pdf&lt;/A&gt; I can start the application from U-Boot (with bin file), I can load it from Linux (with elf file) and I can debug it using Eclipse or Iar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I compile and link the same application to run from DRAM, I can&amp;nbsp;start the application from U-Boot, but I can't&amp;nbsp;load it from Linux nor I can't debug it using Eclipse or Iar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Eclipse for the TCM I use the following memory linker parameters:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MEMORY
{
m_interrupts (RX) : ORIGIN = 0x1FFE0000, LENGTH = 0x00000240
m_text (RX) : ORIGIN = 0x1FFE0240, LENGTH = 0x0001FDC0
m_data (RW) : ORIGIN = 0x20000000, LENGTH = 0x00020000
m_data2 (RW) : ORIGIN = 0x80000000, LENGTH = 0x01000000
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For DRAM:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MEMORY
{
m_interrupts (RX) : ORIGIN = 0x77000000, LENGTH = 0x00000240
m_text (RX) : ORIGIN = 0x77000240, LENGTH = 0x001FFDC0
m_data (RW) : ORIGIN = 0x77200000, LENGTH = 0x00200000
m_data2 (RW) : ORIGIN = 0x77400000, LENGTH = 0x00C00000
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run the application from Linux I get this errors:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ 68.269072] remoteproc remoteproc0: powering up imx-rproc
[ 68.314950] remoteproc remoteproc0: Booting fw image BlinkLED_DDR77.elf, size 3294348
[ 68.322908] remoteproc remoteproc0: bad phdr da 0x77000000 mem 0x240
[ 68.329306] remoteproc remoteproc0: Failed to load program segments: -22
[ 68.336859] remoteproc remoteproc0: Boot failed: -22&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same application (bin) launched from U-Boot works as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to debug the application using Eclipse, after reaching main(), I get continuously:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
Starting target CPU...
...Breakpoint reached @ address 0x77000EBA
Reading common registers: R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, SP, LR, PC, XPSR
Starting target CPU...
...Breakpoint reached @ address 0x77000EBA
Reading common registers: R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, SP, LR, PC, XPSR
Starting target CPU...
...Breakpoint reached @ address 0x77000EBA
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't pause the execution, I can only close the connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have to do to load the application from Linux and to debug it in Eclipse running from DRAM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;BR /&gt;Biafra&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 14:42:24 GMT</pubDate>
    <dc:creator>biafra</dc:creator>
    <dc:date>2022-12-21T14:42:24Z</dc:date>
    <item>
      <title>Debug imx8 M4 on DRAM with Eclipse</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Debug-imx8-M4-on-DRAM-with-Eclipse/m-p/1573197#M199091</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a custom board based on imx8m mini and I need to develop an application on the M4 core.&lt;BR /&gt;I'm testing a very simple program that blinks a led. I started from the example found on the SDK (v 2.12.1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run the program on TCM I can work fine in all the cases I use: following the&amp;nbsp;AN&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5317.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN5317.pdf&lt;/A&gt; I can start the application from U-Boot (with bin file), I can load it from Linux (with elf file) and I can debug it using Eclipse or Iar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I compile and link the same application to run from DRAM, I can&amp;nbsp;start the application from U-Boot, but I can't&amp;nbsp;load it from Linux nor I can't debug it using Eclipse or Iar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Eclipse for the TCM I use the following memory linker parameters:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MEMORY
{
m_interrupts (RX) : ORIGIN = 0x1FFE0000, LENGTH = 0x00000240
m_text (RX) : ORIGIN = 0x1FFE0240, LENGTH = 0x0001FDC0
m_data (RW) : ORIGIN = 0x20000000, LENGTH = 0x00020000
m_data2 (RW) : ORIGIN = 0x80000000, LENGTH = 0x01000000
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For DRAM:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MEMORY
{
m_interrupts (RX) : ORIGIN = 0x77000000, LENGTH = 0x00000240
m_text (RX) : ORIGIN = 0x77000240, LENGTH = 0x001FFDC0
m_data (RW) : ORIGIN = 0x77200000, LENGTH = 0x00200000
m_data2 (RW) : ORIGIN = 0x77400000, LENGTH = 0x00C00000
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run the application from Linux I get this errors:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ 68.269072] remoteproc remoteproc0: powering up imx-rproc
[ 68.314950] remoteproc remoteproc0: Booting fw image BlinkLED_DDR77.elf, size 3294348
[ 68.322908] remoteproc remoteproc0: bad phdr da 0x77000000 mem 0x240
[ 68.329306] remoteproc remoteproc0: Failed to load program segments: -22
[ 68.336859] remoteproc remoteproc0: Boot failed: -22&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same application (bin) launched from U-Boot works as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to debug the application using Eclipse, after reaching main(), I get continuously:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
Starting target CPU...
...Breakpoint reached @ address 0x77000EBA
Reading common registers: R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, SP, LR, PC, XPSR
Starting target CPU...
...Breakpoint reached @ address 0x77000EBA
Reading common registers: R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, SP, LR, PC, XPSR
Starting target CPU...
...Breakpoint reached @ address 0x77000EBA
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't pause the execution, I can only close the connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have to do to load the application from Linux and to debug it in Eclipse running from DRAM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;BR /&gt;Biafra&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 14:42:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Debug-imx8-M4-on-DRAM-with-Eclipse/m-p/1573197#M199091</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2022-12-21T14:42:24Z</dc:date>
    </item>
  </channel>
</rss>

