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.

Catpuring DSP CIO on an OMAP L138

Other Parts Discussed in Thread: OMAP-L138, OMAP-L137

This is a follow up to the following answered question:  http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/219596/773871.aspx#773871

We have been able to modify loadti (http://processors.wiki.ti.com/index.php/Loadti) to capture the output we need from the ARM core of our OMAP-L138 for the ARM unit tests, but it does not seem to capture the output of the DSP CIO, which we need for our DSP unit tests.

Is there some configuration to the loadti script we can make to capture both DSP and ARM CIO (like the console window of CCS5 does by default).   Barring that, is there some way to specify which core to get the CIO output from?

I guess I should note that our current process does some minimal DDR and PLL setup and then loads code both for the DSP and ARM, runs the ARM which does the rest of the initilization and then wakes up and runs the DSP code.    I suspect we could do something with a specialized GEL file that just connected to the DSP and bypassed the ARM to capture DSP CIO, but that would mean we would have less of a guarantee that our DSP unit tests were running in the "same" setup as our production code, and we would have to manually maintain consistency between the GEL file and the ARM initialization code.    We'd much rather just have the same initialization process in test mode as in production and capture CIO from both cores as the CCS5 console window does.

  Thanks,

      Jay

P.S.  is it better forum ettiquette to post a followup question as a separate post, or to reopen a thread for a question that has been answered validly?

  • Jay,

    Just to clarify on your use case, did you modify loadti to load to both the ARM and DSP core in the same command, or are you calling loadti two times to load to the two cores separately? I think loadti was meant to interact with one core at a time, so there's probably some changes needed to the tool to support multicore configurations if you choose to continue using it.

    I'm assuming you are using -stdout-file (or -s) to specify the output file for the CIO files. Since you are running on the ARM core, I think the active debug session must be the ARM core, so this might be why you are only capturing the output of the ARM core. If you look in the code of main.js in the loadti folder, you will see that the -stdout-file command translate to the following DSS call: debugSession.beginCIOLogging(testEnv.cioFile).

    My suggestion is to create a debugSession2 object for you DSP core, and call beginCIOLogging() on that object as well. I'm not sure if you can use the same CIO file for both cores or not, but you should at least be able to capture the CIO output for both cores in separate files.

    The DSS code should look something like this (based on default configuration for OMAP-L137 with XDS1000v2 emulator):

    debugSession2 = debugServer.openSession("Texas Instruments XDS100v2 USB Emulator_0/C674X_0");

    debugSession2.beginCIOLogging(cioFile2);

    Please let me know if this works for you, or if you have any other questions.

    Thanks,

    Ricky

  • Creating another debug session seems to have done the trick.  Thanks!

       Jay