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.

CCSTUDIO: Is there a way to view PWM signals from directly within Code Composer Studio v10?

Part Number: CCSTUDIO

Hi!

I have coded a program and I think it's working as it should -  (I am not using a LaunchPad, but a board that was designed by my university which utilizes the F2837xD core).

However, my oscilloscope is showing that there is no PWM output on my test pins. I would like to test the PWM signals from directly within the code composer studio - to see whether there is an issue with the board and the PWM signals are being generated as they should, or whether my code is just not correct and the PWM is not working as desired.

is there a way to do this with the graph function inside of CCS? I can't see any way to graph for example the GPIO that is given to the PWM modules. Maybe there is another way? Is there a requirement in the code to set the GPIO pin associated with a PWM module high, to trigger the PWM output on? Does the module not do that itself when the TBCTR crossed the value in the CMPA register?

Best wishes,
Joel

  • Hi Joel,

    AFAIK, there is no way to view the PWM signals directly within the CCS.

    I have looped in CCS experts to comment on this.

    Thanks

  • Hi Joel,

    is there a way to do this with the graph function inside of CCS? I can't see any way to graph for example the GPIO that is given to the PWM modules.

    My device expertise is limited (I focus mainly on host tools like CCS) so I will only be able to provide a generic answer regarding CCS graphs. You can use the CCS graph tools to data stored on the target memory. If the GPIO and PWM data is on target memory, then you will be able to display it using the CCS graphs:

    https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_debug-graphs.html

    As for your other questions, I defer to the device experts.

    Thanks

    ki

  • Joel,

    However, my oscilloscope is showing that there is no PWM output on my test pins.

    If you cannot see the PWM signals toggling using a scope, very likely there is a programming bug in your code. Can you see any other MCU I/O pin toggling on your board? 

    is there a way to do this with the graph function inside of CCS? I can't see any way to graph for example the GPIO that is given to the PWM modules.

    To answer your question, no, there is no way to use CCS for this. As mentioned by Ki, you can plot data buffers in a graph, but you can't use CCS to "probe" internal signals.

    I would advice you to look at the PWM registers using CCS to make sure they are being programmed correctly. You can do this from CCS by using the View>Registers menu in CCS during an active debug session.