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.

MSPM0C1104: mspm0c1104 -PWM

Part Number: MSPM0C1104
Other Parts Discussed in Thread: SYSCONFIG, MSPM0C1103

Tool/software:

Hi I'm working on a 8 pin version using one i/o PIN 6, one uart pins 1 & 8 and a PWM pin 7 but no longer able to see an output on pin 7 .
the same C source works with different pins on LP-MSPM0C1104.
Debuf is (of course) disabled to use 6 & 7 but probably I miss some setup in sysconfig. due to the fact I cannot recover programmed parts (flasher cannot work on already programmed parts)
I kindly ask you a help.

thanks ! 

p.s. is there a way to recover already programmed parts? 

-----

/**
 * These arguments were used when this file was generated. They will be automatically applied on subsequent loads
 * via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
 * @cliArgs --device "MSPM0C110X" --part "Default" --package "SOT-8(DDF)" --product "mspm0_sdk@2.04.00.06"
 * @v2CliArgs --device "MSPM0C1103" --package "SOT-8(DDF)" --product "mspm0_sdk@2.04.00.06"
 * @versions {"tool":"1.23.0+4000"}
 */

/**
 * Import the modules used in this configuration.
 */
const Board  = scripting.addModule("/ti/driverlib/Board");
const GPIO   = scripting.addModule("/ti/driverlib/GPIO", {}, false);
const GPIO1  = GPIO.addInstance();
const PWM    = scripting.addModule("/ti/driverlib/PWM", {}, false);
const PWM1   = PWM.addInstance();
const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL");
const UART   = scripting.addModule("/ti/driverlib/UART", {}, false);
const UART1  = UART.addInstance();

/**
 * Write custom configuration values to the imported modules.
 */
Board.debugOn = false;
scripting.suppress("Debug Disabled! Code Cannot be Debugged", Board, "debugOn");

GPIO1.$name                         = "Sensore";
GPIO1.port                          = "PORTA";
GPIO1.associatedPins[0].$name       = "PIN_sensore";
GPIO1.associatedPins[0].pin.$assign = "PA19";

PWM1.$name                      = "PWM_0";
PWM1.ccIndex                    = [0];
PWM1.timerStartTimer            = true;
PWM1.clockDivider               = 2;
PWM1.PWM_CHANNEL_0.$name        = "ti_driverlib_pwm_PWMTimerCC0";
PWM1.PWM_CHANNEL_0.dutyCycle    = 25;
PWM1.PWM_CHANNEL_0.invert       = true;
PWM1.ccp0PinConfig.$name        = "ti_driverlib_gpio_GPIOPinGeneric2";
PWM1.peripheral.$assign         = "TIMA0";
PWM1.peripheral.ccp0Pin.$assign = "PA20";

SYSCTL.peripheral.$assign = "SYSCTL";

UART1.$name                        = "UART_0";
UART1.uartClkSrc                   = "LFCLK";
UART1.ovsRate                      = "3";
UART1.rxFifoThreshold              = "DL_UART_RX_FIFO_LEVEL_ONE_ENTRY";
UART1.enabledInterrupts            = ["RX"];
UART1.peripheral.$assign           = "UART0";
UART1.peripheral.rxPin.$assign     = "PA24";
UART1.peripheral.txPin.$assign     = "PA27";
UART1.txPinConfig.$name            = "ti_driverlib_gpio_GPIOPinGeneric0";
UART1.txPinConfig.enableConfig     = true;
UART1.txPinConfig.internalResistor = "PULL_UP";
UART1.rxPinConfig.$name            = "ti_driverlib_gpio_GPIOPinGeneric1";
UART1.rxPinConfig.enableConfig     = true;
UART1.rxPinConfig.internalResistor = "PULL_UP";

const ProjectConfig              = scripting.addModule("/ti/project_config/ProjectConfig", {}, false);
ProjectConfig.migrationCondition = true;

/**
 * Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future
 * version of the tool will not impact the pinmux you originally saw.  These lines can be completely deleted in order to
 * re-solve from scratch.
 */
Board.peripheral.$suggestSolution = "DEBUGSS";