Part Number: MSPM0G1507
Very often if the MCU starts up, it stucks in the function
DL_SYSCTL_switchMCLKfromSYSOSCtoHSCLK()

because of bad status. I use an external oscillator. The function prvSetupHardware() which calls the DL_init is at the top of the freertos main().

because of bad status. I use an external oscillator. The function prvSetupHardware() which calls the DL_init is at the top of the freertos main().
What is the reason for this behavior and how can I resolve this?
Thanks a lot for any support.