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.

NDK Problem with PDSP1D (necessary for OpenEM)

Hi all,

I want to integrate OpenEM into an application that uses the NDK for the C6678 EVM board. OpenEM seems to require (correct me if I'm wrong) PDSP1D (or PDSP2D) memory region to work. However, as soon as I add one of those to my Platform.xdc and recompile the project, QMSS initialization fails. Note that I did not change anything in the project itself, so the region is not used anywhere in the project, the linker map-file also tells me that the complete region is unused.

You can reproduce the issue by using the attached platform for the hua demo project. All I did was to add the PDSP1D memory region as defined in the OpenEM Example_0 project.

Thanks in advance for your help, any ideas are appreciated.

Kind regards,

Roman

PS: Concerning PDSP1D, it is used as memory region for the private event descriptors in the openem Example_0 exmple. As soon as I change it to whatever other value, OpenEM initialization hangs in ti_em_init_global(), trying to pop an event (global init command, which was pushed to the command queue) in an endless loop from the response queue. It would be also fine if OpenEM would initialize and work correctly without the PDSP1D memory region.

PPS (edit): I tried to add the PDSP1D region to the platform of the NDK helloworld example, it fails at Qmss_insertMemoryRegion() in resourcemgr.c with the device core not responding

myevmc6678l.zip
  • Hi Roman,

    I got a similar problem as yours.I'm integrating openem Example_0 to my  project. I nearly copied most of the source files and  cfg file to my project and modified the platform file so everything can fit in.

    I did not change any source code ,cfg script and segments about PDSP1D and PDSP2D from the Example_0.

    But it hangs in  ti_em_init_global just as you metioned above. when it tries to popEvent from a response queue,it always gets null.

    Do you know how to solve this?

    Really Thank You.

  • Sorry,

    I didn't dig deeper into these issues. In my opinion, OpenEM cannot really be used for real world problems yet.


    Kind regards,

    Roman