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.

MSPM0G3507: When I turn it on again, it stops at DL_SYSCTL_getClockStatus(void)

Part Number: MSPM0G3507

When I turn it on again, it stops at DL_SYSCTL_getClockStatus(void)

The following is the location where I met

/* Check that SYSPLL is disabled before configuration */
while ((DL_SYSCTL_getClockStatus() & (DL_SYSCTL_CLK_STATUS_SYSPLL_OFF)) !=
(DL_SYSCTL_CLK_STATUS_SYSPLL_OFF)) {
;
}

  • Please check the register, [DL_SYSCTL_getClockStatus()] reads.

    This register will show you the clock status, and you can get more clock information.

    You said: when you turn it on again.

    Reset or power on? Could you show me more detailed information?

  • When I power up, something random happens
    while ((DL_SYSCTL_getClockStatus() &(DL_SYSCTL_CLK_STATUS_SYSPLL_OFF)) !=
    (DL_SYSCTL_CLK_STATUS_SYSPLL_OFF)) ;
    It will be executed continuously and cannot be jumped out.
    I want to know if there is a way to change this status?

  • For normal debug, you need to download code and reset M0 to start a debug session.

    I think this is not related to power-on.

    How do you know that after a power-on, your code stuck at waiting for SYSPLL off?

    If you are in debug mode, can you show me your callstack?

  • I change the io status to confirm whether it stops at this position.

  • Does this issue happens when in debug mode?

    And need to check your M0 circuit of your schematic.

  • I would like to ask if there is a way to change this status (SYSCTL->SOCLOCK.CLKSTATUS)
    Which action is needed?

  •  if you are using syspll and enable reset clock in syscfg-sysctl, there maybe need to wait for syspll stop.

    I Am OoO, and can not help you verify this.