Keil Logo

Config Wizard Error in Kinetis K10 startup file

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
martin nichols
Posted
8-Jul-2015 10:17 GMT
Toolset
ARM
New! 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).

Read-Only
Author
R. Kopsch
Posted
8-Jul-2015 14:35 GMT
Toolset
ARM
New! RE: Config Wizard Error in Kinetis K10 startup file

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.

Read-Only
Author
martin nichols
Posted
8-Jul-2015 15:33 GMT
Toolset
ARM
New! RE: Config Wizard Error in Kinetis K10 startup file

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.

Read-Only
Author
R. Kopsch
Posted
9-Jul-2015 15:22 GMT
Toolset
ARM
New! RE: Config Wizard Error in Kinetis K10 startup file

Martin, the patch now is available at:
http://www.keil.com/support/docs/3753.htm

(this issue is a Keil specific one, btw)

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.