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.

Graphing tools while in mixed mode debugging (CCS5.1)



Hi

 

Is it somehow possible to use graphing tools while I'm in GPP side debug mode? During this mode I'm not using JTAG emulator, but just gdb client and server on ARM Cortex A8. GPP is running linux, and I work with GPP side of DSPLink application and just want to check the buffer for the expected signal. However I cannot use Port Connect to connect to memory address as it ends with an error "A debug session must be started before connecting to a port". All I want to achive is signal graph debugging for ARM side of SoC devices running Linux. Is it possible at all?

 

Thanks

Konrad

 

  • Konrad,

    Unfortunately no. The Graph tool is exclusive to the CCS debugger (that uses JTAG).

    One alternative is open a memory browser, save the contents to disk (the green chip button at the top bar of this view) and process the data offline (using Octave, Mathematica or something else). 

    Hope this helps,

    Rafael

  • Rafael,

     

    Thanks for answering so fast. As I understand to use graphing tools I need to be connected with JTAG to DSP core. The question is if it's also possible to connect to ARM core with JTAG and do the debugging while there's linux running on the ARM?

    Thanks

    Konrad

     

     

     

  • Konrad,

    Yes, it is possible to connect to the ARM core with JTAG while Linux is running - the Stop Mode debug discusses exactly this (same Linux debug page I sent in your other post. Link here).

    If you intend to plot the graph directly from the ARM application running in Linux, I haven't tried that myself but at first glance it is possible. However, keep in mind the Linux application will be allocated wherever Linux wants (it is fully relocatable), therefore from a JTAG perspective it may be difficult to pinpoint the exact address of the variable to be plotted. There are ways to extract information from the linux object file and know the relative address of variables, but I am pretty sure a search on the internet would have more useful information than I.

    Let me know if I missed the mark on your question, ok?

    Regards,

    Rafael

     

     

  • Rafael,

    I'm familar with the link you've posted, but as far as I understood there are following debugging options: 

    • Run mode - one can debug linux elf executable with gdb client and gdb server applications
    • Stop mode - one can debug linux OS kernel using JTAG emulator
    • MIxed mode - one can debug both during one debug session

    According to the above I assume it's possible to use graphing tools only when using JTAG debugging ergo Stop Mode, ergo kernel debugging, but would it be also feasible to debug user space application with JTAG within Linux OS? I know that I should be aware of the difference between physical addresses as seen by JTAG and virtual memory as seen by the application managed by linux kernel. ... after a while I dubt it could be possible.

    Maybe you should consider adding this functionality to plot time and fft graphs for ARM side application as the market for SoC solutions is growing up and many developers could appreciate the drawing graphs feature for both GPP and DSP side.

    Regards

    Konrad