<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle19
{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:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Never mind, It’s something to do with my debugger and stepping through code. I can get the hello world message to spit out if I break after the printf statement.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-family:"Arial",sans-serif;color:#EA2839">Kevin Kirspel<i>
</i></span></b><i><span style="font-family:"Arial",sans-serif;color:#EA2839">(he/his),</span></i><span style="font-family:"Arial",sans-serif;color:#C00000">
</span><span style="font-family:"Arial",sans-serif">R&D Manager Sr II, BS EE<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-family:"Arial",sans-serif">IDEXX | One IDEXX Drive Westbrook, Maine 04092 |
<span style="color:#EA2839">m</span>. +1 770-688-1642 | <b>idexx.com<o:p></o:p></b></span></p>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-family:"Arial",sans-serif"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-family:"Arial",sans-serif"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:black;background:white">We help pets lead fuller lives</span> + + + + + + +<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><img width="115" height="21" style="width:1.1979in;height:.2187in" id="Picture_x0020_2" src="cid:image001.png@01DA21F1.01A6BB30" alt="Shape
Description automatically generated with medium confidence"><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Kirspel, Kevin <br>
<b>Sent:</b> Monday, November 27, 2023 7:19 PM<br>
<b>To:</b> devel@rtems.org<br>
<b>Subject:</b> Cyclone 10 LP BSP<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to create a BSP for a NIOS V/m running on a Cyclone 10 LP Eval Kit. The NIOS V/m is a rv32ia/ilp32 architecture so I had to patch the RSB to add that multilib. I have a Hello World app compiled but I get exceptions when having
the tick timer interrupt enabled. So, I disabled the tick timer interrupt and was able to get to the Init() task. When execution the hello world printf, I get another exception related to puts_r in newlib. The exception is occurring when trying to load
the address of _tls_stdout. I traced this back to THREAD_LOCAL_STORAGE being enabled in newlib for the RISC V. Does the BSP have to do anything to setup thread local storage or does this happen automatically when triggered? The exception occurs after it
returns from __sinit which I guess is initializes the thread local storage.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-family:"Arial",sans-serif;color:#EA2839">Kevin Kirspel<i>
</i></span></b><i><span style="font-family:"Arial",sans-serif;color:#EA2839">(he/his),</span></i><span style="font-family:"Arial",sans-serif;color:#C00000">
</span><span style="font-family:"Arial",sans-serif">R&D Manager Sr II, BS EE<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-family:"Arial",sans-serif">IDEXX | One IDEXX Drive Westbrook, Maine 04092 |
<span style="color:#EA2839">m</span>. +1 770-688-1642 | <b>idexx.com<o:p></o:p></b></span></p>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-family:"Arial",sans-serif"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-family:"Arial",sans-serif"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:black;background:white">We help pets lead fuller lives</span> + + + + + + +<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><img width="115" height="21" style="width:1.1979in;height:.2187in" id="Picture_x0020_1" src="cid:image001.png@01DA21F1.01A6BB30" alt="Shape
Description automatically generated with medium confidence"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>