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.

MSP432P401R: On the MSP432P401R: Detected uninitialized port X in the project. Recommend initializing all unused ports to eliminate wasted current consumption

Part Number: MSP432P401R


Hi,

When I run my code via CCS, I notice the following ULP Advices.

(ULP 4.1) Detected uninitialized port X in the project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins. null  .
[X varies from 1 to 10] .

However, I have the following snippet at the start of my code.  Could someone please tell me if I am doing something wrong here while disabling the ports ?

MAP_GPIO_setAsOutputPin(GPIO_PORT_P1, PIN_ALL8);
        MAP_GPIO_setAsOutputPin(GPIO_PORT_P2, PIN_ALL8);
        MAP_GPIO_setAsOutputPin(GPIO_PORT_PB, PIN_ALL16);
        MAP_GPIO_setAsOutputPin(GPIO_PORT_PC, PIN_ALL16);
        MAP_GPIO_setAsOutputPin(GPIO_PORT_PD, PIN_ALL16);
        MAP_GPIO_setAsOutputPin(GPIO_PORT_PE, PIN_ALL16);
        MAP_GPIO_setOutputLowOnPin(GPIO_PORT_P1, PIN_ALL8);
        MAP_GPIO_setOutputLowOnPin(GPIO_PORT_P2, PIN_ALL8);
        MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PB, PIN_ALL16);
        MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PC, PIN_ALL16);
        MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PD, PIN_ALL16);
        MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PE, PIN_ALL16);

Thanks!

  • Hello,

       I am looking at the LPM3 example in driver lib.  The GPIO is setup as follows:

        MAP_GPIO_setAsOutputPin(GPIO_PORT_PA, PIN_ALL16);
        MAP_GPIO_setAsOutputPin(GPIO_PORT_PB, PIN_ALL16);
        MAP_GPIO_setAsOutputPin(GPIO_PORT_PC, PIN_ALL16);
        MAP_GPIO_setAsOutputPin(GPIO_PORT_PD, PIN_ALL16);
        MAP_GPIO_setAsOutputPin(GPIO_PORT_PE, PIN_ALL16);
        MAP_GPIO_setAsOutputPin(GPIO_PORT_PJ, PIN_ALL16);
        MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PA, PIN_ALL16);
        MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PB, PIN_ALL16);
        MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PC, PIN_ALL16);
        MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PD, PIN_ALL16);
        MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PE, PIN_ALL16);
        MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PJ, PIN_ALL16);

    Can you try to also initialize port 'J'?

    Regards,

    Chris

  • Thanks for the reply. I still see the following "advice" after initializing port J too , where the uninitialized port varies from 1 to 10.

    "(ULP 4.1) Detected uninitialized Port 9 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins. null: (ULP 4.1) Detected uninitialized Port 9 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins. "

    Attached is a more detailed code snippet. Please let me know if I am missing something.

    -----------------------------------------------------
    MAP_WDT_A_holdTimer();
    MAP_Interrupt_disableMaster();

    MAP_PCM_setCoreVoltageLevel(PCM_VCORE1);

    MAP_PCM_setPowerState(PCM_AM_DCDC_VCORE1);

    // Set wait state
    MAP_FlashCtl_setWaitState(FLASH_BANK0, 2);
    MAP_FlashCtl_setWaitState(FLASH_BANK1, 2);

    // Initializes Clock System
    MAP_CS_setDCOCenteredFrequency(CS_DCO_FREQUENCY_48);

    // Terminating all remaining pins to minimize power consumption. This is
    // done by register accesses for simplicity and to minimize branching API
    // calls

    MAP_GPIO_setAsOutputPin(GPIO_PORT_PA, PIN_ALL16);
    MAP_GPIO_setAsOutputPin(GPIO_PORT_PB, PIN_ALL16);
    MAP_GPIO_setAsOutputPin(GPIO_PORT_PC, PIN_ALL16);
    MAP_GPIO_setAsOutputPin(GPIO_PORT_PD, PIN_ALL16);
    MAP_GPIO_setAsOutputPin(GPIO_PORT_PE, PIN_ALL16);
    MAP_GPIO_setAsOutputPin(GPIO_PORT_PJ, PIN_ALL16);

    MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PA, PIN_ALL16);
    MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PB, PIN_ALL16);
    MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PC, PIN_ALL16);
    MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PD, PIN_ALL16);
    MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PE, PIN_ALL16);
    MAP_GPIO_setOutputLowOnPin(GPIO_PORT_PJ, PIN_ALL16);
    ------------------------------------------------------------

    Thanks!
  • This appears to be a known issue: e2e.ti.com/.../535365

    I will submit a new ticket against this bug.

    Regards,
    Chris

**Attention** This is a public forum