<?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のトピックRe: Problem in debugging rpmsg</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1621091#M203166</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi tried your suggestion, but with no luck.&lt;/P&gt;&lt;P&gt;The behaviour is the same as before: the M4 core is not able to hanshake that the link is up, it waits indefintely in the&amp;nbsp;rpmsg_lite_wait_for_link_up() function, even after loading the pingpong module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 17:04:55 GMT</pubDate>
    <dc:creator>biafra</dc:creator>
    <dc:date>2023-03-23T17:04:55Z</dc:date>
    <item>
      <title>Problem in debugging rpmsg</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1616897#M202854</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 i.MX8M mini with Eclipse, GNU Arm Embedded toolchain and Segger J-Link.&lt;/P&gt;&lt;P&gt;I'm having a problem on debugging rpmsg using pingpong example.&lt;/P&gt;&lt;P&gt;With linux running, I load the program using the debugger, the program starts and initializes the rpmsg, but it waits indefinitely in the rpmsg_lite_wait_for_link_up() function.&amp;nbsp;The same program loaded from linux with remoteproc works fine.&lt;/P&gt;&lt;P&gt;The is compiled for intenal RAM (0x1FFE000).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone already see this behaviour?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 14:11:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1616897#M202854</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2023-03-16T14:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in debugging rpmsg</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1618321#M202958</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/65478"&gt;@biafra&lt;/a&gt;,&lt;/P&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please make sure that you have configured menuconfig options as shown in&amp;nbsp;2.8.4 Menu Configuration Options in&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf&amp;amp;source=gmail&amp;amp;ust=1679391719944000&amp;amp;usg=AOvVaw07DrA5f_WyVhy2bUNq4IZ0"&gt;i&lt;/A&gt;&lt;A href="https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf&amp;amp;source=gmail&amp;amp;ust=1679391719944000&amp;amp;usg=AOvVaw07DrA5f_WyVhy2bUNq4IZ0"&gt;.MX Linux Reference Manual&lt;/A&gt;&amp;nbsp;and followed the below steps,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;=&amp;gt;&amp;nbsp;&lt;STRONG&gt;setenv fdt_file imx8mm-evk-rpmsg.dtb&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please make sure that you have compiled m4 binary&amp;nbsp;using any of the debug release (build_ddr_debug.sh or build_debug.sh or build_flash_debug.sh)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;This issue could arise if the linux module is not loaded correctly after the linux boot, and m4 core still waiting for rpmsg-lite channel link&amp;nbsp;up.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please make sure that kernel module is loaded correctly using modprobe utility in linux.&lt;/DIV&gt;
&lt;DIV&gt;$ modprobe&amp;nbsp;imx_rpmsg_pingpong&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Dhruvit Vasavada&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Mar 2023 09:47:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1618321#M202958</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-03-20T09:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in debugging rpmsg</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1618397#M202965</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the steps I do when it works:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Linux boot&lt;/LI&gt;&lt;LI&gt;I load and start the M4 program:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;echo -n ~/ &amp;gt; /sys/module/firmware_class/parameters/path
echo -n linux_remote.elf &amp;gt; /sys/class/remoteproc/remoteproc0/firmware
echo start &amp;gt; /sys/class/remoteproc/remoteproc0/state

remoteproc remoteproc0: powering up imx-rproc
remoteproc remoteproc0: Booting fw image linux_remote_2_13.elf, size 3534088
 remoteproc0#vdev0buffer: assigned reserved memory node vdevbuffer@78400000
virtio_rpmsg_bus virtio0: rpmsg host is online
 remoteproc0#vdev0buffer: registered virtio0 (type 7)
remoteproc remoteproc0: remote processor imx-rproc is now up
virtio_rpmsg_bus virtio0: creating channel rpmsg-openamp-demo-channel addr 0x1e&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;At the same time in the M4 terminal console there are the messages:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RPMSG Ping-Pong FreeRTOS RTOS API Demo...
RPMSG Share Base Addr is 0x78000000

Link is up!
Nameservice announce sent.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;At this time I load the ping pong module:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;modprobe imx_rpmsg_pingpong
90:init
42:rpmsg_pingpong_probe
imx_rpmsg_pingpong virtio0.rpmsg-openamp-demo-channel.-1.30: new channel: 0x400 -&amp;gt; 0x1e!
get 1 (src: 0x1e)
get 3 (src: 0x1e)
get 5 (src: 0x1e)
[...]
get 99 (src: 0x1e)
get 101 (src: 0x1e)
imx_rpmsg_pingpong virtio0.rpmsg-openamp-demo-channel.-1.30: goodbye!&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the corresponding M4 terminal console there are the messages:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Waiting for ping...
Sending pong...
Waiting for ping...
Sending pong...
Waiting for ping...
Sending pong...
[...]
Waiting for ping...
Sending pong...
Waiting for ping...
Sending pong...
Ping pong done, deinitializing...
Looping forever...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the steps I do when it doesn't work:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Linux boot&lt;/LI&gt;&lt;LI&gt;Using the IDE (Eclipse &amp;amp; J-Link) I load and start the M4 program&lt;/LI&gt;&lt;LI&gt;These are the only messages displayed in the M4 terminal console:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RPMSG Ping-Pong FreeRTOS RTOS API Demo...
RPMSG Share Base Addr is 0x78000000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Then I load the ping pong module and these are the only messages displayed in the linux console:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;modprobe imx_rpmsg_pingpong
90:init&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The M4 program is compiled using the&amp;nbsp;MIMX8MM6xxxxx_cm4_ram.ld linker file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I making some mistakes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:22:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1618397#M202965</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2023-03-20T11:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in debugging rpmsg</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1619281#M203036</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/65478"&gt;@biafra&lt;/a&gt;,&lt;/P&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;DIV&gt;Please try following the steps below&amp;nbsp;&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;build&amp;nbsp;m4 binary using (build_debug.sh or build_debug.bat)&lt;/LI&gt;
&lt;LI&gt;Stop at u-boot and set fdtfile as&amp;nbsp;&amp;nbsp;imx8mm-evk-rpmsg.dtb&lt;/LI&gt;
&lt;LI&gt;Using the IDE (Eclipse &amp;amp; J-Link) I load and start the M4 program&lt;/LI&gt;
&lt;LI&gt;Linux Boot&lt;/LI&gt;
&lt;LI&gt;modprobe imx_rpmsg_pingpong&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;DIV&gt;Please make a note that RPMSG demos can be debugged only starting from U-Boot.&lt;/DIV&gt;
&lt;DIV&gt;Please refer to 5.5 Debug RPMSG demos in&lt;A href="https://variwiki.com/index.php?title=MCUXpresso_VSCode" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://variwiki.com/index.php?title%3DMCUXpresso_VSCode&amp;amp;source=gmail&amp;amp;ust=1679493541258000&amp;amp;usg=AOvVaw105iA8YBxj2Kl4vo-koqXL"&gt;&lt;STRONG&gt;&amp;nbsp;Debug RPMSG demos&lt;/STRONG&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I hope it helps!&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Dhruvit Vasavada&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Mar 2023 14:11:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1619281#M203036</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-03-21T14:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in debugging rpmsg</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1621091#M203166</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi tried your suggestion, but with no luck.&lt;/P&gt;&lt;P&gt;The behaviour is the same as before: the M4 core is not able to hanshake that the link is up, it waits indefintely in the&amp;nbsp;rpmsg_lite_wait_for_link_up() function, even after loading the pingpong module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 17:04:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1621091#M203166</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2023-03-23T17:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in debugging rpmsg</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1621675#M203231</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/65478"&gt;@biafra&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please make sure that you started the M4 application after stopping at the u-boot console and making necessary device tree changes.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Please refer to the steps and Notes mentioned in&amp;nbsp;5.5 Debug RPMSG demos and 5.6 at&amp;nbsp;&lt;A href="https://variwiki.com/index.php?title=MCUXpresso_VSCode" target="_blank" rel="noopener nofollow noreferrer" data-saferedirecturl="https://www.google.com/url?q=https://variwiki.com/index.php?title%3DMCUXpresso_VSCode&amp;amp;source=gmail&amp;amp;ust=1679493541258000&amp;amp;usg=AOvVaw105iA8YBxj2Kl4vo-koqXL"&gt;&lt;STRONG&gt;Debug RPMSG demos.&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please make sure that you have configured the breakpoint correctly.&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 12:49:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1621675#M203231</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-03-24T12:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in debugging rpmsg</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1621790#M203240</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the previous test I forgot to add&lt;/P&gt;&lt;PRE&gt;    status = "disabled";&lt;/PRE&gt;&lt;P&gt;in the&amp;nbsp;imx8mm-cm4 node.&lt;/P&gt;&lt;P&gt;Now I followed all the things you noticed, but the behaviour is still the same.&lt;/P&gt;&lt;P&gt;This time there also the problem that I can use remoteproc: /dev/remoteproc0 doesn't exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 15:34:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1621790#M203240</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2023-03-24T15:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in debugging rpmsg</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1622557#M203291</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/65478"&gt;@biafra&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the rpmsg node is missing then&lt;/SPAN&gt;&amp;nbsp;suggested device tree changes are not required.&lt;/P&gt;
&lt;P&gt;Please be careful&amp;nbsp;&lt;SPAN&gt;to set breakpoints or debug step by step in rpmsg demos because when the M core is stopped even the A core is blocked.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please make sure that you have followed all the steps and notes mentioned in&amp;nbsp;&lt;A href="https://variwiki.com/index.php?title=MCUXpresso_VSCode" target="_blank" rel="noopener nofollow noreferrer" data-saferedirecturl="https://www.google.com/url?q=https://variwiki.com/index.php?title%3DMCUXpresso_VSCode&amp;amp;source=gmail&amp;amp;ust=1679493541258000&amp;amp;usg=AOvVaw105iA8YBxj2Kl4vo-koqXL"&gt;&lt;STRONG&gt;Debug RPMSG demos.&lt;/STRONG&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please provide me with the device tree used for further debugging.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer to the below-mentioned link where rpmsg demos are debugged successfully.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/rpmsg-lite-str-echo-rtos-stuck-at-rpmsg-lite-is-link-up-when-run/m-p/1290717" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/rpmsg-lite-str-echo-rtos-stuck-at-rpmsg-lite-is-link-up-when-run/m-p/1290717&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 11:15:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-in-debugging-rpmsg/m-p/1622557#M203291</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-03-27T11:15:38Z</dc:date>
    </item>
  </channel>
</rss>

