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 indicate the DSP which files must be processed with the loaded program?



Hi members,

I work with: CCSv5.4, the DM6437 EVM, a Blackhawck emulator and video coding standards. I read the documentation provided by the wiki and searched also information within the forum, but my problem remains unresolved. I would like that someone tells me the procedure or points me the right direction (for example, indicating meaningful examples and documentation). My problem may be extrapolated to other areas different from video coding, it is the following:

The program to load on the DSP (a video decoder) has several arguments, one is for the video sequence to decode. Because this decoder have to be tested again many sequences, I would like to create a script to automate the test. With the documentation about DSS, I was not able to know how to indicate the DSP which video sequences must be tested. In other words, how I could tell the target that the program  "decoder.out" must run the batch of sequences? (Of course, in an efficient way, for example in a script; not by coding in the decoder code the path to the sequences).

Thanks in advance.

  • Hello,

    Daniel GLG said:
    The program to load on the DSP (a video decoder) has several arguments

    Are these arguments you can pass to 'main' (ex. argc, argv)?

    Daniel GLG said:
    I was not able to know how to indicate the DSP which video sequences must be tested. In other words, how I could tell the target that the program  "decoder.out" must run the batch of sequences?

    If you can indicate to your program which video sequences to test via arguments to main, AND you have correctly built your program to accept arguments main (built with --args option), then you can use the DSS loadProgram API with the second parameter being an array of arguments to be passed to main.

    Otherwise you can simply use the DSS memory write APIs to modify target memory (ex. variable contents which set which video sequence to test).

    Thanks

    ki