struct within float array

Gedare Bloom gedare at rtems.org
Tue Nov 19 17:45:31 UTC 2013


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
>



More information about the users mailing list