SPRZ342O January 2011 – April 2021 TMS320F28062 , TMS320F28062-Q1 , TMS320F28062F , TMS320F28062F-Q1 , TMS320F28063 , TMS320F28064 , TMS320F28065 , TMS320F28066 , TMS320F28066-Q1 , TMS320F28067 , TMS320F28067-Q1 , TMS320F28068F , TMS320F28068M , TMS320F28069 , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M-Q1
Oscillator: CPU Clock Switching to INTOSC2 May Result in Missing Clock Condition After Reset
0, A, B
After at least two system resets (not including power-on reset), when the application code attempts to switch the CPU clock source to internal oscillator 2, a missing clock condition will occur, and the clock switching will fail under the following conditions:
The missing clock condition will recover only after a power-on reset when the failure condition occurs.
Before switching the CPU clock source to INTOSC2 via the OSCCLKSRCSEL and OSCCLKSRC2SEL bits in the CLKCTL register, the user must toggle the XCLKINOFF and XTALOSCOFF bits in the CLKCTL register as illustrated in the below sequence:
CLKCTL |= 0x6000; // XCLKINOFF = 1, XTALOSCOFF = 1
CLKCTL &=~0x6000; // XCLKINOFF = 0, XTALOSCOFF = 0
CLKCTL |= 0x6000; // XCLKINOFF = 1, XTALOSCOFF = 1
CLKCTL &=~0x6000; // XCLKINOFF = 0, XTALOSCOFF = 0
CLKCTL |= 0x6000; // XCLKINOFF = 1, XTALOSCOFF = 1
Once the above procedure is executed, then the OSC2 selection switches can be configured.
If the JTAG debug probe is connected, and GPIO38 (TCK) is toggling, then the above procedure is unnecessary, but will do no harm.
If no clock is applied to GPIO38, TI also recommends that a strong pullup resistor on GPIO38 be added to VDDIO.