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).
Hi Martin, I am currently creating a corresponding Knowledgebase-Article. A Beta is available already at: http://www.keil.com/support/docs/3753.htm with a 1st solution. The final article will be available soon, offering a patch.
Hi Ralph,
OK Thanks - yes, adding the C style comment marker seems to fix it.
I'd actually changed it for this:
; <o.0> Check for normal (not LPBOOT) ; <o.1> Check to enable EZPORT ; <o.2> Check to enable NMI FOPT EQU 0xF9
Which works and includes the NMI disable for this particular chip. Do you guys do the chip specific stuff or is that (in this case) Freescale?
Regards, Martin.
Martin, the patch now is available at: http://www.keil.com/support/docs/3753.htm
(this issue is a Keil specific one, btw)