Tool/software: TI-RTOS
Hi ,
I am managed to get the ex02_message example of IPC 3.46.00.02 version working. (This is download from
)
I have added the following code in the *.cfg file
/* Shared Memory base address and length */
var SHAREDMEM = 0x80001400;
var SHAREDMEMSIZE = 0x00002000;
/*
* Need to define the shared region. The IPC modules use this
* to make portable pointers. All processors need to add this
* call with their base address of the shared memory region.
* If the processor cannot access the memory, do not add it.
*/
var SharedRegion = xdc.useModule('ti.sdo.ipc.SharedRegion');
SharedRegion.setEntryMeta(0,
{ base: SHAREDMEM,
len: SHAREDMEMSIZE,
ownerProcId: 0,
isValid: true,
name: "Shared RAM",
});
and would like to create heap for messageQ .
I tried to add <#include /ti/sdo/ipc/SharedRegion.h>
and was hoping to use Memory_alloc(SharedRegion_getHeap(0), 256, 8, NULL);
instead of msg = (App_Msg *)MessageQ_alloc(Module.heapId, Module.msgSize);
but I am getting following error:
#
# Making all ...
make PROFILE=debug app_host
make[3]: Entering directory '/opt/ti/ipc_3_46_00_02/examples/OMAPL138_linux_elf/ex02_messageq/host'
#
# Making bin/debug/obj/App.ov5T ...
/opt/ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabi-gcc -D_REENTRANT -c -MD -MF bin/debug/obj/App.ov5T.dep -Wall -ffloat-store -fPIC -Wunused -pthread -Dfar= -ggdb -D DEBUG -I. -I.. -I/opt/ti/ipc_3_46_00_02/linux/include -I/opt/ti/ipc_3_46_00_02/packages -o bin/debug/obj/App.ov5T App.c
In file included from App.c:46:0:
/opt/ti/ipc_3_46_00_02/packages/ti/sdo/ipc/SharedRegion.h:50:21: fatal error: xdc/std.h: No such file or directory
#include <xdc/std.h>
^
compilation terminated.