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.

MSPM0L1306: Unable to produce Timer based PWM Signals with any example projects

Part Number: MSPM0L1306
Other Parts Discussed in Thread: SYSCONFIG

Hi,

I am trying to create a pwm signal based on timer by configuring in the sysconfig file.

I have also tried to run example projects such as - 

1. Arm-based microcontrollers/Embedded Software/MSPM0 SDK/Examples/Development Tools/LP-MPM0L1306 LaunchPad /DriverLib/ timx_timer_mode_pwm_edge_sleep

2. Arm-based microcontrollers/Embedded Software/MSPM0 SDK/Examples/Development Tools/LP-MPM0L1306 LaunchPad /DriverLib/ timx_timer_mode_pwm_edge_sleep_shadow

3. Arm-based microcontrollers/Embedded Software/MSPM0 SDK/Examples/Development Tools/LP-MPM0L1306 LaunchPad / MSP Subsystems / pwm_led_driver

I have verified the launchpad jumper connections as well. I have tried to generate pwm in PA12, PA13 pins. I have used the internal XDS110 in the launchpad as well as I have used an external XDS110 debugger after removing the SWDIO and SWCLK jumpers

I have attached the sysconfig screenshots here.Please let me know if I am missing something
  • Hello,

    There three points you need to notice:

    1). Our each TIMG x has two PWM channels, and you can determine which channels are in use. 

    if you can accept using the same clock source to generate two PWM waves, you can choose to use TIMG0 to generate two PWM on PA12 and PA13. The following figure is an example.

    2). If you need to generate two PWM using different clock source, you can choose to use different TIMER.

    3). Please make sure that the PWM channel and the Counter Compare Pin which you chose are corresponding.

    4). You don't need to click the "Start Timer" in the Syscfg. You can use the "DL_TimerG_startCounter(PWM_0_INST); " in your program to control the TIMER to generate PWM when you need. 

  • Hi, Thanks for the reply.

    I have ensured all the above points and have tested it with generating 2 PWM signals on PA12 and PA13 with the same clock but was unable to generate PWM signals.

    I also tried to generate single PWMs in both PA12 and PA13 separately and ensured the counter compare pin is selected with the respective TIMG0 and still couldn't generate PWM.I have also used DL_TimerG_startCounter(PWM_0_INST).. I can see the Timer running and CCD event occurring but unable to get PWM as outputs.

    Is this because I am using a Rev 1,0 Launchpad?. I am using CCS12.3 with MSPM0 SDK1.20 and sysconfig 1.18

    Reference - (+) [FAQ] MSPM0-SDK: Important note for early MSPM0 customers - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums

  • Hello,

    You mean that you have tried all the example code about PWM generation in our SDK and all of them can't let you observe PWM output? Do you use the oscilloscope or logic analyzer to observe the output? And are you sure that the instrument parameters are right?

  • Hi again,

    Yes I have tried all examples about PWM generation in the SDK. I have used oscilloscope as well as Logic pro 8. I was able to observe toggling of GPIO in both and hence the instrument parameters are right. However only PWM output  is not observed. I also tried connecting the PA13 jumper to LED to see PWM at lower frequency. I am able to see LED blink only if I toggle PA13 as GPIO but if I try the same connection with PWM example project, I am unable to see LED blink or ON even.

  • Hello,

    The possible reasons may be the channel error, the TIMER error or the launchpad error.

    You can continue test:

    1). TIMG0 has two PWM channels. You can try to test another channel output and observe it;

    2). If another channel of TIMG0 can't output the PWM yet, you can try to test another TIMER such as TIMG1, TIMG2 or TIMG4;

    3). If other TIMER can't output the PWM yet, you can try to test another launchpad;

    4). If none of the above methods are effective, you can consider sending the launchpad back and we will help you to check it.

  • Hi,

    I tried testing all the above points. I couldn't get PWM in any of the Timers (including different channels and their respective pins).

    Is this because I am using Rev 1.0 (Early sample) Launchpad??
    I came across a thread - [FAQ] MSPM0-SDK: Important note for early MSPM0 customers - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums 
    In this they have mentioned about the repository for early samples being deprecated. Can I know what is the difference in library files for early samples compared to the production samples. How can I access the early samples library files?

    Just want to ensure I am using the right version of Launchpad and right version of software.
    Also Can you guide me on how to send the launchpad back.

    Thanks

  • Hello,

    Based on the current situation, the reason should be that the Rev 1.0 Launchpad is not compatible with CCS software. In certain application scenarios, this incompatibility may occur, so we suggest you use the latest version of the Launchpad. 

    At present, the quickest way to solve the problem is to apply for the latest Launchpad on our official website: TI.com. 

    You can use the latest Launchpad and the latest version of CCS to get PWM signal.

    If you still cannot get the PWM using the latest Launchpad and CCS, please contact me.

    BR,

    Janz Bai