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.

How to configure DSP software to run on different devices?

What is the best practice for configuring DSP SW for different hardware devices? In our particular case, we need to run the same software on both 66AK2H06 and 66AK2H12 devices. This requires changes e.g. in IPC (lad) and app.cfg files. Is there a way to use an compile time flag or environment variable to define number of cores in app.cfg or do we just have to branch our code base into two different versions?

regards,

Marko

  • Hi Marko,
    No, we don't have compile time flag to differ the K2H devices.

    But you can create one flag manually in compiler to define which device you are going to build.

    You have to change the compiler settings via CCS properties for building other devices.

  • Hi,

    The normal compile time flag is not an issue for C/C++ source files but what about app.cfg. For example, we should have one app.cfg setting with:

    MultiProc.setConfig(null, ["HOST", "CORE0", "CORE1", "CORE2", "CORE3",
    "CORE4", "CORE5", "CORE6", "CORE7"]);

    And another one with:

    MultiProc.setConfig(null, ["HOST", "CORE0", "CORE1", "CORE2", "CORE3"]);

    I suppose compile time or environment variables cannot be used in app.cfg (javascript) or can they?

    Marko