This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Config Wizard Error in Kinetis K10 startup file

Hi All,

It appears to me that the config wizard for the 'out-of-the-box' K10 start-up file does not work.
I'm particularly interested in settings for the FOPT (Start-up options) byte.

Here's a fragment of the code from startup_MK10DN10.s :

;   </h>
;   <h> Flash nonvolatile option byte (FOPT)
;      Allows the user to customize the operation of the MCU at boot time.
;     <o.0>  LPBOOT
;       <0=> Low-power boot
;       <1=> normal boot
;     <o.1>  EZPORT_DIS
;       <0=> EzPort operation is enabled
;       <1=> EzPort operation is disabled
FOPT            EQU     0xFF


So the default FOPT is 0xFF yet the wizard says "Low-power boot" and "EzPort operation is enabled" which would be 0xFE.

It gets worse....
If I use the wizard to change FOPT so that Low-power boot is disabled and EzPort is also disabled the source code changes to:

;   </h>
;   <h> Flash nonvolatile option byte (FOPT)
;      Allows the user to customize the operation of the MCU at boot time.
;     <o.0>  LPBOOT
;       <1=> Low-power boot
;       <1=> normal boot
;     <o.1>  EZPORT_DIS
;       <2=> EzPort operation is enabled
;       <1=> EzPort operation is disabled
FOPT            EQU     0xFF

Note that what's been changed is part of the wizard script NOT the FOPT byte.
I suspect that some of the other wizard settings in this file are wrong too.
BTW there's no mention of NMI Disable which is bit 2 of FOPT.

I'm using uVision 5.15 and Kinetis pack for K10 1.1.0

Regards,
Martin (UK).