Hi Masahiro,
From the functionality point of view, no glitches should occur when switching clock modes (with the proper functions that waits for the lock of the PLLs).
However, if the SDK uses macros (on compile time) to generate the time bases (most of this, for FreeRTOS), the time bases may be broken when changing the clock bases on-on-the-fly. So, it is recommended applying the proper macro modification considering the clocks that are going to be used on the application and recompiling the SDK also including your custom functions for clock changes.
Hope this will be useful for you.
Best regards!
/Carlos
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------