<div dir="ltr"><div>Thanks for the answer.</div><div>Sorry for my ignorance but I can't see how is this related with my problem.  I didn't get the "Create bad task" problem. Also there is no fatal error with code 20.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qua, 24 de jul de 2019 às 02:46, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 23/07/2019 21:30, Michel Macena wrote:<br>
> Hi, I have compiled a test code for an ERC32 target board and loaded it <br>
> using gdb,<br>
> the code:<br>
> <br>
>     #include <bsp.h><br>
> <br>
>     #include <stdlib.h><br>
>     #include <stdio.h><br>
> <br>
>     rtems_task Init(<br>
>        rtems_task_argument ignored<br>
>     )<br>
>     {<br>
> <br>
>          uint16_t a=6;<br>
>          printf( "Hello World Michel\n" );<br>
>          printf( "numero: %d\n",a );<br>
> <br>
> <br>
>     }<br>
<br>
Please have a look at the INTERNAL_ERROR_THREAD_EXITTED fatal error <br>
description:<br>
<br>
<a href="https://docs.rtems.org/branches/master/c-user/fatal_error.html#internal-error-codes" rel="noreferrer" target="_blank">https://docs.rtems.org/branches/master/c-user/fatal_error.html#internal-error-codes</a><br>
<br>
If you use GDB, then always set a break point to _Terminate. It will hit <br>
if the application terminated.<br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : +49 89 189 47 41-16<br>
Fax     : +49 89 189 47 41-09<br>
E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
</blockquote></div>