MSPM33-SDK: Difference between example and own project interface syscfg

Part Number: MSPM33-SDK
Other Parts Discussed in Thread: SYSCONFIG

I try to manage an ADC pin in my SW, so I took the example hsadc_conversion_continous to understand and integrate it, but in the .syscfg, I saw some differences and I do not know how to solve them.

Let me show you all the points:

Example:

Our SW:

 

Example:

Our SW:

 

 

Example:

Our SW:

 

Etc …

 

Why I have not the same configuration ?

Is it due to configure something somewhere ?

 

  • Hi Sebastien,

    I have not seen SOC0 Module Channel Name show before in the M33 Sysconfig, what version of the sdk/ccs/sysconfig are you using?

    Thanks,

    -Eric Rentschler

  • Hello Eric,

    I use :

    Where can I read version of sdk/ccs/sysconfig  ?

    Best regards

    Sebastien

  • Hi Sebastien,

    Your available SDK settings would be shown in the File -> Preferences -> Code Composer Studio Settings

    I wasn't able to recreate it with just the latest version of CCS. Please, send your SDK and Sysconfig versions.

    Thanks,

    -Eric Rentschler

  • Hello Eric,

    ok, so I have:

    Have a nice day

    Sebastien

  • Hi Sebastien,

    Those version match what I have on my end, but I'm not able to recreate your issue. Can you send your .sysconfig file?

    Thanks,

    -Eric Rentschler

  • Hello Eric,

    yes please find attached my .syscfg file

    Sebastien

  • Attached file, did not work

    /**
     * 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 "MSPM33C321X" --part "Default" --package "LQFP-100(PFA)" --product "mspm33_sdk@1.02.00.00"
     * @v2CliArgs --device "MSPM33C321A" --package "LQFP-100(PFA)" --product "mspm33_sdk@1.02.00.00"
     * @versions {"tool":"1.26.0+4407"}
     */
    
    /**
     * 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 GPIO2  = GPIO.addInstance();
    const GPIO3  = GPIO.addInstance();
    const HSADC  = scripting.addModule("/ti/driverlib/HSADC", {}, false);
    const HSADC1 = HSADC.addInstance();
    const MCAN   = scripting.addModule("/ti/driverlib/MCAN", {}, false);
    const MCAN1  = MCAN.addInstance();
    const SPI    = scripting.addModule("/ti/driverlib/SPI", {}, false);
    const SPI1   = SPI.addInstance();
    const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL");
    const TIMER  = scripting.addModule("/ti/driverlib/TIMER", {}, false);
    const TIMER1 = TIMER.addInstance();
    const WWDT   = scripting.addModule("/ti/driverlib/WWDT", {}, false);
    const WWDT1  = WWDT.addInstance();
    
    /**
     * Write custom configuration values to the imported modules.
     */
    const divider2       = system.clockTree["EXTDIVCAN"];
    divider2.divideValue = 1;
    
    const multiplier2         = system.clockTree["PLL_QDIV"];
    multiplier2.multiplyValue = 10;
    
    const mux2       = system.clockTree["CANCLKMUX"];
    mux2.inputSelect = "CANCLKMUX_EXTDIVCAN";
    
    Board.peripheral.$assign = "DEBUGSS";
    
    GPIO1.$name                               = "GPIO_LED";
    GPIO1.associatedPins.create(2);
    GPIO1.associatedPins[0].$name             = "LED_RED";
    GPIO1.associatedPins[0].launchPadShortcut = "LED2RedEn";
    GPIO1.associatedPins[1].$name             = "LED_GREEN";
    GPIO1.associatedPins[1].launchPadShortcut = "LED2GreenEn";
    
    GPIO2.$name                         = "GPIO_DEBUG";
    GPIO2.associatedPins.create(2);
    GPIO2.associatedPins[0].$name       = "OUT_1";
    GPIO2.associatedPins[0].pin.$assign = "PA0";
    GPIO2.associatedPins[1].$name       = "OUT_2";
    GPIO2.associatedPins[1].pin.$assign = "PB8";
    
    GPIO3.$name                                 = "GPIO_SPI_SMI_230";
    GPIO3.associatedPins.create(4);
    GPIO3.associatedPins[0].$name               = "CS_ACC";
    GPIO3.associatedPins[0].initialValue        = "SET";
    GPIO3.associatedPins[0].pin.$assign         = "PB3";
    GPIO3.associatedPins[1].$name               = "CS_GYR";
    GPIO3.associatedPins[1].initialValue        = "SET";
    GPIO3.associatedPins[1].pin.$assign         = "PB14";
    GPIO3.associatedPins[2].$name               = "INT_1_ACC";
    GPIO3.associatedPins[2].direction           = "INPUT";
    GPIO3.associatedPins[2].interruptEn         = true;
    GPIO3.associatedPins[2].polarity            = "RISE";
    GPIO3.associatedPins[2].assignedPort        = "PORTA";
    GPIO3.associatedPins[2].assignedPortSegment = "Upper";
    GPIO3.associatedPins[2].assignedPin         = "28";
    GPIO3.associatedPins[2].interruptPriority   = "1";
    GPIO3.associatedPins[2].pin.$assign         = "PA28";
    GPIO3.associatedPins[3].$name               = "INT_3_GYR";
    GPIO3.associatedPins[3].direction           = "INPUT";
    GPIO3.associatedPins[3].assignedPort        = "PORTA";
    GPIO3.associatedPins[3].assignedPortSegment = "Lower";
    GPIO3.associatedPins[3].assignedPin         = "7";
    GPIO3.associatedPins[3].interruptEn         = true;
    GPIO3.associatedPins[3].polarity            = "RISE";
    GPIO3.associatedPins[3].interruptPriority   = "1";
    GPIO3.associatedPins[3].pin.$assign         = "PA7";
    
    HSADC1.$name                          = "HSADC0";
    HSADC1.soc3Channel                    = "ADC_CH_ADCIN_3";
    HSADC1.seq4Enable                     = true;
    HSADC1.seq4TriggerSel                 = "ADC_TRIGGER_GEN_SUB_0";
    HSADC1.seq4SampleWindow               = 16;
    HSADC1.enabledInts                    = ["ADC_INT_NUMBER_1"];
    HSADC1.enableInterrupt1               = true;
    HSADC1.enabledSOCs                    = ["ADC_SOC_NUMBER0"];
    HSADC1.enabledSEQs                    = ["ADC_SEQ_NUMBER1"];
    HSADC1.seq1Enable                     = true;
    HSADC1.seq1SampleWindow               = 16;
    HSADC1.enableInterrupt1ContinuousMode = true;
    HSADC1.peripheral.$assign             = "ADC0";
    
    MCAN1.$name                     = "MCAN0";
    MCAN1.emulationEnable           = true;
    MCAN1.autoWkupEnable            = true;
    MCAN1.wkupReqEnable             = true;
    MCAN1.tdcEnable                 = true;
    MCAN1.useCalcDataVal            = false;
    MCAN1.lss                       = 2;
    MCAN1.stdFiltElem               = "001";
    MCAN1.stdFiltType               = "01";
    MCAN1.stdFiltID1                = 3;
    MCAN1.stdFiltID2                = 4;
    MCAN1.flesa                     = 0;
    MCAN1.lse                       = 0;
    MCAN1.txEventFIFOWaterMark      = 0;
    MCAN1.rxFIFO0waterMark          = 0;
    MCAN1.additionalCoreConfig      = true;
    MCAN1.rrfs                      = true;
    MCAN1.rrfe                      = true;
    MCAN1.enableInterrupt           = true;
    MCAN1.interruptLine             = ["DL_MCAN_INTR_LINE_NUM_1"];
    MCAN1.interruptLine1Flag        = ["DL_MCAN_INTR_MASK_ALL"];
    MCAN1.m0interrupts              = ["DL_MCAN_MSP_INTERRUPT_LINE1"];
    MCAN1.anfe                      = "1";
    MCAN1.anfs                      = "1";
    MCAN1.interruptFlags            = ["DL_MCAN_INTERRUPT_ARA","DL_MCAN_INTERRUPT_BEU","DL_MCAN_INTERRUPT_BO","DL_MCAN_INTERRUPT_DRX","DL_MCAN_INTERRUPT_ELO","DL_MCAN_INTERRUPT_EP","DL_MCAN_INTERRUPT_EW","DL_MCAN_INTERRUPT_MRAF","DL_MCAN_INTERRUPT_PEA","DL_MCAN_INTERRUPT_PED","DL_MCAN_INTERRUPT_RF0N","DL_MCAN_INTERRUPT_TC","DL_MCAN_INTERRUPT_TOO","DL_MCAN_INTERRUPT_TSW","DL_MCAN_INTERRUPT_WDI"];
    MCAN1.loopbackMode              = "external";
    MCAN1.fdMode                    = false;
    MCAN1.spPercent                 = 87;
    MCAN1.nomRatePrescalar_manual   = 4;
    MCAN1.nomTimeSeg1_manual        = 13;
    MCAN1.nomTimeSeg2_manual        = 2;
    MCAN1.nomSynchJumpWidth_manual  = 2;
    MCAN1.dataRatePrescalar_manual  = 5;
    MCAN1.dataTimeSeg1_manual       = 14;
    MCAN1.dataTimeSeg2_manual       = 3;
    MCAN1.dataSynchJumpWidth_manual = 3;
    MCAN1.peripheral.$assign        = "CANFD0";
    MCAN1.peripheral.rxPin.$assign  = "PA27";
    MCAN1.peripheral.txPin.$assign  = "PA26";
    MCAN1.txPinConfig.$name         = "ti_driverlib_gpio_GPIOPinGeneric4";
    MCAN1.rxPinConfig.$name         = "ti_driverlib_gpio_GPIOPinGeneric5";
    
    SPI1.$name                      = "SPI_0";
    SPI1.polarity                   = "1";
    SPI1.phase                      = "1";
    SPI1.peripheral.sclkPin.$assign = "PB18";
    SPI1.peripheral.mosiPin.$assign = "PB17";
    SPI1.peripheral.misoPin.$assign = "PB19";
    SPI1.peripheral.cs0Pin.$assign  = "PA2";
    SPI1.sclkPinConfig.$name        = "ti_driverlib_gpio_GPIOPinGeneric0";
    SPI1.mosiPinConfig.$name        = "ti_driverlib_gpio_GPIOPinGeneric1";
    SPI1.misoPinConfig.$name        = "ti_driverlib_gpio_GPIOPinGeneric2";
    SPI1.cs0PinConfig.$name         = "ti_driverlib_gpio_GPIOPinGeneric3";
    
    SYSCTL.SYSPLL_Pdiv           = 1;
    SYSCTL.SYSPLL_CLK0En         = true;
    SYSCTL.SYSPLL_CLK1Div        = 6;
    SYSCTL.MCLKSource            = "HSCLK";
    SYSCTL.SYSPLL_CLK0Div        = 1;
    SYSCTL.useHFCLK_Manual       = true;
    SYSCTL.HFCLKSource           = "HFXT";
    SYSCTL.HFCLK_Freq            = 40000000;
    SYSCTL.forceDefaultClkConfig = true;
    SYSCTL.CANCLKSource          = "HFCLK";
    
    TIMER1.$name               = "TIMER_0";
    TIMER1.timerClkDiv         = 8;
    TIMER1.timerClkPrescale    = 10;
    TIMER1.timerMode           = "PERIODIC";
    TIMER1.timerPeriod         = "0.5 ms";
    TIMER1.enableRepeatCounter = true;
    TIMER1.repeatCounter       = 2;
    TIMER1.interrupts          = ["REPC"];
    
    WWDT1.$name        = "WWDT0";
    WWDT1.periodCount  = "10";
    WWDT1.clockDivider = "2";
    
    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.swclkPin.$suggestSolution   = "PA20";
    Board.peripheral.swdioPin.$suggestSolution   = "PA19";
    GPIO1.associatedPins[0].pin.$suggestSolution = "PC26";
    GPIO1.associatedPins[1].pin.$suggestSolution = "PC27";
    SPI1.peripheral.$suggestSolution             = "UC2";
    SYSCTL.peripheral.$suggestSolution           = "SYSCTL";
    SYSCTL.peripheral.hfxInPin.$suggestSolution  = "PA5";
    SYSCTL.peripheral.hfxOutPin.$suggestSolution = "PA6";
    TIMER1.peripheral.$suggestSolution           = "TIMA0_0";
    WWDT1.peripheral.$suggestSolution            = "WWDT0";
    

  • Hi Sebastien,

    I loaded your syscfg into my local setup and I was not able to recreate the issue you were seeing, can you try to do a fresh install and create a new project with the same settings?

    Thanks,

    -Eric Rentschler