struct within float array

Luca Cinquepalmi cinquepalmi at planetek.it
Tue Nov 19 17:58:32 UTC 2013


my task is the init task. I tryed to configure it by insert

#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT

before including confdefs.h but nothing happens.
Is my configuration correct?

Luca

Il 19/11/2013 18:45, Gedare Bloom ha scritto:
> Is your task created with RTEMS_FLOATING_POINT attribute?
>
> -Gedare
>
> On Tue, Nov 19, 2013 at 12:24 PM, Luca Cinquepalmi
> <cinquepalmi at planetek.it> wrote:
>> Hi all,
>> I have the following problem.
>>
>> I've declared the following structure
>>
>> struct str {
>>      int a;
>>      int b;
>>      float arr[2]
>> }
>>
>> in my Init task I declared:
>>
>> struct *str mystr;
>> mystr = (str*)calloc(1, sizeof(*mystr)
>> mystr -> a = 1;
>> mystr -> b = 2;
>> mystr -> arr[0] = 1.2;
>> mystr -> arr[1] = 2.1;
>>
>> When i plot my value a trap error occours and no valu
>> is plotted
>> If my array is of int, all goes good.
>> Is there a particular problem for float array in structures
>> with RTEMS? thanks.
>>
>> Luca
>>
>>
>>
>> Il 19/11/2013 12:06, Sebastian Huber ha scritto:
>>
>> On 2013-11-19 11:56, Leonard Bise wrote:
>>
>> Am I correct in thinking that this section of the RTEMS doc :
>> http://rtems.org/onlinedocs/doc-current/share/rtems/html/c_user/Multiprocessing-Manager.html#Multiprocessing-Manager
>>
>> Talks about what I want or is that something else entirely? I'm a bit loss
>> with
>> your comment about multiprocessing support in RTEMS Sebastian.
>>
>>
>> RTEMS_MULTIPROCESSING:
>>
>> Independent single-processor RTEMS instances share global objects.  State
>> changes are exchanged by means of message passing.
>>
>> RTEMS_SMP:
>>
>> One symmetric multi-processor RTEMS instance runs on multiple processors.
>>
>>
>>
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-users
>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20131119/f46370ef/attachment.html>


More information about the users mailing list