Dear Mark.
I still don't understand how to do this in MKE04Z8.
In reference manual for MKE04Z8 you can read this about the FTMRE_FOPT field descriptions
Field Description
NV Nonvolatile Bits
The NV[7:0] bits are available as nonvolatile bits. During the reset sequence, the FOPT register is loaded
from the flash nonvolatile byte in the flash configuration field at global address 0x40F located in flash memory.
This differs from the MKL04Z8 CPU for which the following can be read:
Table 6-2. Flash Option Register (FTFA_FOPT) Bit Definitions(continued)
BitNum Field Value Definition
5 FAST_INIT Select initialization speed on POR, VLLSx, and any system reset .
0 Slower initialization. The Flash initialization will be slower with the benefit of reduced average current during this time. The duration of the recovery will be controlled by the clock divider selection determined by the LPBOOT setting.
1 Fast Initialization.The Flash has faster recoveries at the expense of higher current during these times.
3 RESET_PIN_CFG Enable/disable control for the RESET pin.
0 RESET pin is disabled following a POR and cannot be enabled as RESET function. When this option is selected, there could be a short period of contention during a POR ramp where the device drives the pin out low prior to establishing the setting of this option and releasing the RESET function on the pin. This bit is preserved through system resets and low power modes. When RESET pin function is disabled it cannot be used as a source for low power mode wakeup. NOTE: When the reset pin has been disabled and security has been enabled by
means of the FSEC register, a mass erase can be performed only by setting both the mass erase and system reset request bits in the
MDM-AP register.
1 RESET pin is dedicated. The port is configured with pullup enabled, open drain, passive filter enabled.
2 NMI_DIS Enable/disable control for the NMI function.
0 NMI interrupts are always blocked. The associated pin continues to default to NMI pin controls with internal pullup enabled. When NMI pin function is disabled it cannot be used as a source for low power mode wakeup.
1 NMI pin/interrupts reset default to enabled.
1 Reserved Reserved for future expansion.
4,0 LPBOOT Control the reset value of OUTDIV1 value in SIM_CLKDIV1 register. Larger divide value selections produce lower average power consumption during POR, VLLSx recoveries and reset sequencing and after reset exit. The recovery times are also extended if the FAST_INIT option is not selected.
00 Core and system clock divider (OUTDIV1) is 0x7 (divide by 8)
01 Core and system clock divider (OUTDIV1) is 0x3 (divide by 4)
10 Core and system clock divider (OUTDIV1) is 0x1 (divide by 2)
11 Core and system clock divider (OUTDIV1) is 0x0 (divide by 1)
Is the bit definitions for FTMRE_FOPT (MKE04Z8) the same as for FTFA_FOPT (MKL04Z8) ?
If this is the case, why has it been left out in the MKE04Z8 reference manual?
Regards
/Bo