<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.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@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">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@01DA2161.D32A9AE0" alt="Shape
Description automatically generated with medium confidence"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>