We've looked at the documentation are are confused.
Section 19.3.1 – Boot eFUSE Description (p 828)
OSC_TUNE D[7:0] – Bank Word7 Field 31:24
0x00 = OSC_TUNE will be filled with POR default (OSC_TUNE POR Value = 0x57)
Non-Zero = This will become the POR OSCNT value in bootrom
Section 19.4.3 – Clocks at Boot Time (p 832)
This section discusses how CCM_CCR[OSCNT] is used at boot time. It says the customer can over-ride the crystal startup time.
Wait Time = 1.5 * (CCM_CCR[OSCNT]/SIRC)
SIRC = 128 KHz
With OSCNT = 255 wait time would be 1.5 * (256 / 131072) = 2.93 ms
With OSCNT=Default (0x57=87) wait time would be 1.5 * (88/131072) = 1.01 ms
Section 10.2.1 CCM Control Register (CCM_CCR)
This section discuss how OSCNT is used and lists the POR value. Oscillator ready counter value. These bits define value of 32 KHz counter, that server as counter for oscillator lock time. This is used for oscillator lock time. Current estimation is ~2.7 ms. This counter will be used in ignition sequence and in wake from stop sequence if CCM_CLPCR[SBYOS] bit was defined, to notify that on-chip oscillator output is ready to use.
00000000 = count 1 cycle of 32 KHz SXOSC clock
11111111 = count 256 cycles of 32 KHz SXOSC clock
01010111 = POR = 0x57
0xFF – 0x57 = 0xA8 (168)
Calculating time to add the additional time to the started 3 ms… 168 / 32768 = 5.12 ms --- So that gives us ~8 ms!
If it is the OSC_TUNE D that needs to be burned, what value gives us 8ms?
What about the other fuses associated with the oscillator? Do they need to be blown too?