insert delay loop required before changing CPU clock; this fixes intermittent stability issues
diff --git a/src/part2/examples/local/runtime/SysUart.c b/src/part2/examples/local/runtime/SysUart.c
index 40ea558..31fda9d 100644
--- a/src/part2/examples/local/runtime/SysUart.c
+++ b/src/part2/examples/local/runtime/SysUart.c
@@ -182,6 +182,13 @@
P1OUT = 0; /* turn off LEDs */
#if USE_8MHZ
+ /* delay loop to ensure proper startup before increasing the DCO from the
+ * reset startup value of 1MHz.
+ * This is typically tailored to the power supply used, and in this case
+ * is overkill for safety due to wide distribution.
+ */
+ {volatile int i; for (i = 0; i < 0xFFFF; i++){}}
+
BCSCTL1 = CALBC1_8MHZ; /* Set DCO to the default of Simpliciti */
DCOCTL = CALDCO_8MHZ;
BCSCTL3 |= LFXT1S_2; /* LFXT1 = VLO */