[quote user="janet"]
Hi Ronny,
I'm glad to hear your configuration issues are solved. I'm not sure what 'payloadSize' in your code is, but maybe that is incorrect. You could try passing sizeof(MyMsg) to MessageQ_alloc(). Also, the 'name' may be a problem. Is this pointing to a buffer in shared memory? You could try starting with an array for 'name' and see if that works.
Best regards,
Janet
[/quote]
Janet,
Thank you, your help has been very useful for me. I managed to solve the issues of the memory allocation using your advices.
I have a couple of questions regarding this, sorry Im a newbie.
How can I know if my program is using Shared Memory? As far as I know you have to put the next lines in the .cfg file:
var SHAREDMEM = 0x0C000000; var SHAREDMEMSIZE = 0x00200000; var SharedRegion = xdc.useModule("ti.sdo.ipc.SharedRegion"); SharedRegion.setEntryMeta(0, { base: SHAREDMEM, len: SHAREDMEMSIZE, ownerProcId: 0, isValid: true, name: "DDR3_DSP", });
But how Can I assign a given "heap" to reside in the Shared Memory? Should I use the module ListMP of IPC?
The transports module "ti.sdo.ipc.transports.TransportShmSetup" uses shared memory as default? If not How can I configure my MessageQ application between ARM and DSP to use Shared Memory?
Thank you so much for your help, Im a bit confused about this.
Regards,
Ronny