<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Unfortunately, this didn’t help:
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Transfer rate: 4462 KB/sec, 236 bytes/write.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">(gdb) run<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">The "remote" target does not support "run". Try "help target" or "continue".<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">I also tried target extended-remote and the -r option in SIS, but so far without success.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"> Jan<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> jiri <jiri@gaisler.se> <br>
<b>Sent:</b> Tuesday, June 15, 2021 12:53 PM<br>
<b>To:</b> Sommer, Jan <Jan.Sommer@dlr.de>; users@rtems.org<br>
<b>Subject:</b> Re: [SIS] Connecting to riscv-rtems6-sis via gdb<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Try to start ececution in gdb with 'run' rather than "c'. This might be needed to initialize the simulator.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Jiri.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div id="composer_signature">
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#575757">Sent from Samsung tablet.<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:black">-------- Original message --------<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">From: <a href="mailto:Jan.Sommer@dlr.de">
Jan.Sommer@dlr.de</a> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Date: 14/06/2021 11:27 (GMT-04:00)
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">To: <a href="mailto:users@rtems.org">
users@rtems.org</a> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Subject: [SIS] Connecting to riscv-rtems6-sis via gdb
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
</div>
<p class="MsoNormal">Hello,<br>
<br>
I tried to follow the example for using SIS, but use RISCV as the target platform instead of SPARC (<a href="https://docs.rtems.org/branches/master/user/tools/tester.html#building-rtems-tests">https://docs.rtems.org/branches/master/user/tools/tester.html#building-rtems-tests</a>).<br>
However, while I can run ticker.exe of the griscv BSP perfectly in SIS, the same application does not run when loaded through gdb.<br>
<br>
I did <br>
$ riscv-rtems6-sis -gdb <br>
SIS - SPARC/RISCV instruction simulator 2.26, copyright Jiri Gaisler 2020<br>
Bug-reports to <a href="mailto:jiri@gaisler.se">jiri@gaisler.se</a><br>
<br>
RISCV/GRLIB emulation enabled, 1 cpus online, delta 50 clocks<br>
<br>
gdb: listening on port 1234 connected<br>
X40000000,0:#72 <br>
<< No further output after executing "continue" in gdb >><br>
<br>
$ riscv-rtems6-gdb riscv-rtems6/griscv/testsuites/samples/ticker.exe<br>
(gdb) target remote :1234<br>
Remote debugging using :1234<br>
0x00000000 in ?? ()<br>
(gdb) load<br>
Loading section .start, size 0x44 lma 0x40000000<br>
Loading section .text, size 0x10a2c lma 0x40000044<br>
Loading section .rodata, size 0x1da5 lma 0x40010a70<br>
Loading section .eh_frame, size 0x68 lma 0x40012818<br>
Loading section .init_array, size 0x4 lma 0x40012880<br>
Loading section .fini_array, size 0x4 lma 0x40012884<br>
Loading section .rtemsroset, size 0x74 lma 0x40012888<br>
Loading section .data, size 0x5c8 lma 0x40012900<br>
Loading section .sdata, size 0xac lma 0x40012ec8<br>
Start address 0x40000000, load size 77677<br>
Transfer rate: 3992 KB/sec, 236 bytes/write.<br>
(gdb) c<br>
Continuing.<br>
<br>
If I run "riscv-rtems6-sis -r riscv-rtems6/griscv/testsuites/samples/ticker.exe" everything works like expected.<br>
Am I doing something wrong?<br>
<br>
Best regards,<br>
<br>
Jan<br>
<br>
<br>
Deutsches Zentrum für Luft- und Raumfahrt e. V. (DLR)<br>
German Aerospace Center<br>
Institute for Software Technology | Software for Space Systems and Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany<br>
<br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users">http://lists.rtems.org/mailman/listinfo/users</a><o:p></o:p></p>
</div>
</div>
</body>
</html>