Tool/software: TI-RTOS
Hi,all
I am using ti-rtos at am5728 board.I have some questions at DRA7XX_linux_elf/ex02_messageq examples.
I want to test the ARM and DSP1 communication and use MessageQ_staticMsgInit() to init a static message.
I found the MessageQ_staticMsgInit() is just do the MessageQ_msgInit and set the msg->heapId as 0xFFFF(MessageQ_STATICMSG) to avoid the message free.
but,the MessageQ_put will free the msg.it will call the Segmemtation fault(core dumped).
the ipc_3_43_02_04/linux/src/transport/TransportRpmsg.c-----TransportRpmsg_put(). the function will call MessageQ_free no matter what heapId is.
add the core and it will work fine.
if(msg->heapId != MessageQ_STATICMSG){ MessageQ_free(msg); }
so, here is my question.
Is it a bug at ti-rtos package? or i use the MessageQ_staticMsgInit() at the wrong way?
please let me know that.
Thanks.