Hello Yang,
Thanks for reply. I am using MK60DN512VMD10.
Below are the small snippet.
Task1:
typedef struct
{
uint32_t data1;
void *ptr;
uint32_t data2;
uint32_t data3;
}Set_Struct;
Arr_Handler = OSA_MsgQCreate(&ArrayMsg, 20, sizeof(Set_Struct ));
Task2:
Set_Struct Structure; //define structure variable local
call_function_to_put_msg(&Structure); //call function which is put msg with structure pointer passed
Task3:
Set_Struct Structure; //define structure variable local
call_function_to_put_msg
{
OSA_MsgQPut(ArrayMsg, &Structure);
}
In these case local variable of Task2 is changing. Why this is happening?
regards
Utsavi Bharuchwala