CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER macro issue
Joel Sherrill
joel at rtems.org
Wed Jul 24 19:33:38 UTC 2019
On Wed, Jul 24, 2019, 1:58 PM Michel Macena <mmacena.eng at gmail.com> wrote:
> Thanks for the answer.
> 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.
>
No RTEMS bsp makes any effort to return an exit status to the invoking
environment. What you are seeing gdb print is most likely random garbage.
If you break at _Terminate, you will see why the program exited.
>
>
> Em qua, 24 de jul de 2019 às 02:46, Sebastian Huber <
> sebastian.huber at embedded-brains.de> escreveu:
>
>>
>>
>> On 23/07/2019 21:30, Michel Macena wrote:
>> > Hi, I have compiled a test code for an ERC32 target board and loaded it
>> > using gdb,
>> > the code:
>> >
>> > #include <bsp.h>
>> >
>> > #include <stdlib.h>
>> > #include <stdio.h>
>> >
>> > rtems_task Init(
>> > rtems_task_argument ignored
>> > )
>> > {
>> >
>> > uint16_t a=6;
>> > printf( "Hello World Michel\n" );
>> > printf( "numero: %d\n",a );
>> >
>> >
>> > }
>>
>> Please have a look at the INTERNAL_ERROR_THREAD_EXITTED fatal error
>> description:
>>
>>
>> https://docs.rtems.org/branches/master/c-user/fatal_error.html#internal-error-codes
>>
>> If you use GDB, then always set a break point to _Terminate. It will hit
>> if the application terminated.
>>
>> --
>> Sebastian Huber, embedded brains GmbH
>>
>> Address : Dornierstr. 4, D-82178 Puchheim, Germany
>> Phone : +49 89 189 47 41-16
>> Fax : +49 89 189 47 41-09
>> E-Mail : sebastian.huber at embedded-brains.de
>> PGP : Public key available on request.
>>
>> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20190724/15c9dc81/attachment-0002.html>
More information about the users
mailing list