This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/EVMK2G: IPC EX02_MessageQ Example Problem

Part Number: EVMK2G
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hi,

I have a EVMK2G board.

I built ex02_messageq example in CCS and built linux side application according to http://processors.wiki.ti.com/index.php/Processor_SDK_IPC_Quick_Start_Guide. I am running example to following instructions 

Firstly:I am running following command on linux:

mpmcl reset dsp0

mpmcl load dsp0 IPC_Demo.out

mpmcl run dsp0

Secondly: Starting debugging with 'Load symbols only' mode.

When I run app_host application on linux with './app_host CORE0' command dsp side application crash.

Sysmin output is:

,[      0.000] 2 Resource entries at 0x800000
,[      0.000] [t=0x0000a517] xdc.runtime.Main: --> main:
,[      0.000] registering rpmsg-proto:rpmsg-proto service on 61 with HOST
,[      0.000] [t=0x001954fb] xdc.runtime.Main: NameMap_sendMessage: HOST 53, port=61
,[      0.000] [t=0x0019aa43] xdc.runtime.Main: --> smain:
,[      0.000] [t=0x001a06cb] Server: Server_create: server is ready
,[      0.000] [t=0x001a38ba] Server: <-- Server_create: 0
,[      0.000] [t=0x001a6341] Server: --> Server_exec:
,[     22.768] [t=0x00000006:77b57e47] ti.sysbios.heaps.HeapBuf: ERROR: line 236: requested size is too big: handle=0x896d88, size=65664
,[     22.768] ti.sysbios.heaps.HeapBuf: line 236: requested size is too big: handle=0x896d88, size=65664
,[     22.769] [t=0x00000006:77c4195a] ti.sdo.ipc.MessageQ: ERROR: line 503: assertion failure: A_invalidMsg: Invalid message
,[     22.769] ti.sdo.ipc.MessageQ: line 503: assertion failure: A_invalidMsg: Invalid message
,[     22.769] xdc.runtime.Error.raise: terminating execution

app_host output is:

--> main:
--> Main_main:
--> App_create:
App_create: Host is ready
<-- App_create:
--> App_exec:
App_exec: sending message 1
App_exec: sending message 2
App_exec: sending message 3

What is the problem.I didn't change anything in orginal ex02_example.I only port it to CCS.

  • Hello Yusuf,

    I will try reproducing this on my board and get back to you.
  • Thanks for your support.

    I have one more question.

    When I look generated linker.cmd file, I don't see any heap section loaded to msmcs.

    Don't have to have at least one heap section loaded to msmcs in ipc application.

  • Hello Yusuf,

    I am sorry for the delay in reproducing this issue. I should have a response for you within a few days.
  • Hi Yusuf,

    CCS projects for the IPC examples isn't currently supported in Processor SDK. The examples will need to be built using makefiles as described in the IPC quick start guide. After running "make-ti-ipc-examples" the executable binaries for the DSP can be found under examples/66AK2G_linux_elf/ex02_messageq/core0/bin/debug and examples/66AK2G_linux_elf/ex02_messageq/core0/bin/release.

    I recommend comparing the build log of your CCS project to the build log of the makefile project, as well as the .map file of both projects, to see if there are any differences. There may be a compiler/linker setting that you are missing in the CCS project.

    You can inspect the makefile located in examples/66AK2G_linux_elf/ex02_messageq/core0/ to see what compiler/linker flags are being passed.