<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-08-09 2:56 GMT+02:00 Hesham Almatary <span dir="ltr"><<a href="mailto:heshamelmatary@gmail.com" target="_blank">heshamelmatary@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Denis,<br>
<br>
That's good to know. You might want to try running other samples now<br>
that are not low-memory and see if they work.<br>
<br>
Cheers,<br>
Hesham<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Aug 8, 2017 at 7:51 PM, Denis Obrezkov <<a href="mailto:denisobrezkov@gmail.com">denisobrezkov@gmail.com</a>> wrote:<br>
> 2017-08-07 0:49 GMT+02:00 Denis Obrezkov <<a href="mailto:denisobrezkov@gmail.com">denisobrezkov@gmail.com</a>>:<br>
>><br>
>> 2017-08-07 0:44 GMT+02:00 Hesham Almatary <<a href="mailto:heshamelmatary@gmail.com">heshamelmatary@gmail.com</a>>:<br>
>>><br>
>>> Hi Denis,<br>
>>><br>
>>> Thanks for sharing the state of HiFive1 BSP. At this stage of GSoC, we<br>
>>> would want you to clean-up the code, write documentations/comments and<br>
>>> submit your code for review (probably to my GitHub repo).<br>
>>> Details/instructions how to use your code (compile, build, run, etc)<br>
>>> are also important.<br>
>>><br>
>>> Cheers,<br>
>>> Hesham<br>
>>><br>
>>> On Mon, Aug 7, 2017 at 7:25 AM, Denis Obrezkov <<a href="mailto:denisobrezkov@gmail.com">denisobrezkov@gmail.com</a>><br>
>>> wrote:<br>
>>> > Hello all,<br>
>>> ><br>
>>> > currently I have some issues with optimization flags.<br>
>>> > First of all, the low ticker example doesn't work with any optimization<br>
>>> > flags.<br>
>>> > Secondly, the hello example is too big and doesn't fit into memory<br>
>>> > without<br>
>>> > optimization.<br>
>>> > And, in conclusion, scanf requires a clock driver, but as I said it<br>
>>> > still<br>
>>> > doesn't<br>
>>> > work with optimization flags, so I can't test it.<br>
>>> ><br>
>>> > Also, I want to say that on this stage the BSP is very fragile and<br>
>>> > requires<br>
>>> > proper configuration options to be set.<br>
>>> ><br>
>>> > --<br>
>>> > Regards, Denis Obrezkov<br>
>>> ><br>
>>> > ______________________________<wbr>_________________<br>
>>> > devel mailing list<br>
>>> > <a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
>>> > <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Hesham<br>
>><br>
>> Yes, I will try to do it till this Wednesday.<br>
>><br>
>><br>
>> --<br>
>> Regards, Denis Obrezkov<br>
><br>
> Sorry, I was too curious and found out why the low ticker example didn't<br>
> work with -Os optimization flag.<br>
> I found out that global interrupts aren't enabled back after task creation<br>
> or starting routing. Thus, I have modified the code<br>
> in this way:<br>
><br>
> for (i=1 ; i<=3 ; i++ ) {<br>
> status = rtems_task_create(<br>
> rtems_build_name( 'T', 'A', 0x30+1, ' ' ), 1, 0,<br>
> RTEMS_DEFAULT_MODES,<br>
> RTEMS_DEFAULT_ATTRIBUTES, &id<br>
> );<br>
> status = rtems_task_start( id, Test_task, i );<br>
> }<br>
> asm volatile ("csrsi mstatus, 0x8"); //I've added this line<br>
><br>
> And it works.<br>
> Now I can proceed with documentation and clean up the code.<br>
> --<br>
> Regards, Denis Obrezkov<br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Hesham<br>
</font></span></blockquote></div><br>It is still required to locate this error and correct it - as for now I have only a quick fix solution</div><div class="gmail_extra">for one example. <br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards, Denis Obrezkov</div>
</div></div>