Hi,
We are trying to run the DSP OMX examples with the DM8148 following the instructions with the firmware_loader 0 file.
The firmware_loader is not always successful from boot to boot. Sometimes it works, sometimes it fails. I am suspecting there is a caching problem with the DSP and perhaps the shared regions somewhere. This seems like a configuraiton issue somewhere.
I enabled the OMX UIA tracing for the DSP according to:
http://processors.wiki.ti.com/index.php/OMX_Viewing_Media_Controller_Traces
When the firmware_loader hangs, the DSP is stuck in IpcAttach(), here are the DSP traces:
N:DSP P:0 #:00000 T:00000000002713e5 M:xdc.runtime.Main S:DSP: in main
N:DSP P:0 #:00001 T:00000000002ac1d1 M:xdc.runtime.Main S:DSP: IPC Start Successful
N:DSP P:0 #:00002 T:00000000002d8947 M:xdc.runtime.Main S:DSP: In Dsp_AppTask
N:DSP P:0 #:00003 T:00000000002f9e23 M:xdc.runtime.Main S:in DSP platform Init: Calling TIMM_OSAL_Init
N:DSP P:0 #:00004 T:00000000003e9563 M:xdc.runtime.Main S:in DSP platform Init: TIMM_OSAL_Init Success
N:DSP P:0 #:00005 T:000000000040ef51 M:xdc.runtime.Main S:in DSP platform Init: Calling OMX_Init
N:DSP P:0 #:00006 T:0000000000480c61 M:xdc.runtime.Main S:Module<ti.omx> Entering<DomxCore_procInit> @line<250>
N:DSP P:0 #:00007 T:00000000037a2c2f M:xdc.runtime.Main S:Module<ti.omx> @<DomxCore_procInit> @line<277> msg<Before Ipc_attach>
Then it hangs, and eventually the ARM syslink bails out with
[ 311.090000] *** Platform_startCallback: Ipc_attach timeout
[ 311.090000] Error [0xffffffff] at Line no: 2720 in file /export/space/ti-ezsdk_dm814x-evm_5_05_02_00/component-sources/syslink_2_21
_01_05/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/family/hlos/knl/ti81xx/Platform.c
[ 311.110000] *** Ipc_control: Platform_startCallback failed!
[ 311.110000] Error [0xffffffff] at Line no: 841 in file /export/space/ti-ezsdk_dm814x-evm_5_05_02_00/component-sources/syslink_2_21_
01_05/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Ipc.c
FIRMWARE: Ipc_CONTROLCMD_STARTCALLBACK Error: ProcMgr status 0xffffffff
The above run was using syslink_2_21_01_05, but the behavior is identical with the stock syslink_2_20_02_20 (I tried upgrading syslink to see if that would help).
When the DSP successfully loads, I get many more traces and the application works without any issues.
The only thing I am doing different is rebooting the system. All of the images / executables are the same.
I am thinking that this is a CACHING issue or some uninitialized variable, but I need some guidance as to what to look for in Ipc_attach. Can anyone please help me out?
-Mike