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: MSPM0L1306:

Part Number: MSPM0L1306
Other Parts Discussed in Thread: SYSCONFIG
HELLO, I'M WORKING WITH THE LP-MSPM0L1306 KIT, I want to study the pwm functions but the example functions in the Resouce Explorer don't work, I can't get the waves in the gpios.
In EXAMPLES > DEVELOPMENT TOOLS > LP-MSPM0L1306 LAUNCHERPAD > COOKBOOK > PWM_LED_DRIVER > NO_RTOS > TI CLANG COMPILER > PWM_LED_DRIVER. THIS WAS ONE OF THE ONE I TESTED, BUT APPARENTLY NO EXAMPLE WITH PWM WORKS. OTHER EXAMPLES WITH GPIOS HANDLING WORK NORMALLY.

ti_msp_dl_config.h

#ifndef ti_msp_dl_config_h
#define ti_msp_dl_config_h

#define CONFIG_MSPM0L130X

#if defined(__ti_version__) || defined(__TI_COMPILER_VERSION__)
#define SYSCONFIG_WEAK __attribute__((weak))
#elif defined(__IAR_SYSTEMS_ICC__)
#define SYSCONFIG_WEAK __weak
#elif defined(__GNUC__)
#define SYSCONFIG_WEAK __attribute__((weak))
#endif

#include <ti/devices/msp/msp.h>
#include <ti/driverlib/driverlib.h>
#include <ti/driverlib/m0p/dl_core.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
* ======== SYSCFG_DL_init ========
* Perform all required MSP DL initialization
*
* This function should be called once at a point before any use of
* MSP DL.
*/


/* clang-format off */

#define POWER_STARTUP_DELAY (16)


#define CPUCLK_FREQ 32000000

/* Defines for PWM_0 */
#define PWM_0_INST TIMG0
#define PWM_0_INST_IRQHandler TIMG0_IRQHandler
#define PWM_0_INST_INT_IRQN (TIMG0_INT_IRQn)
#define PWM_0_INST_CLK_FREQ 125000
/* GPIO defines for channel 1 */
#define GPIO_PWM_0_C1_PORT GPIOA
#define GPIO_PWM_0_C1_PIN DL_GPIO_PIN_13
#define GPIO_PWM_0_C1_IOMUX (IOMUX_PINCM14)
#define GPIO_PWM_0_C1_IOMUX_FUNC IOMUX_PINCM14_PF_TIMG0_CCP1
#define GPIO_PWM_0_C1_IDX DL_TIMER_CC_1_INDEX


/* clang-format on */

void SYSCFG_DL_init(void);
void SYSCFG_DL_initPower(void);
void SYSCFG_DL_GPIO_init(void);
void SYSCFG_DL_SYSCTL_init(void);
void SYSCFG_DL_PWM_0_init(void);


#ifdef __cplusplus
}
#endif

#endif /* ti_msp_dl_config_h */