ROM Bootloader for Kinetis MKE14F

cancel
Showing results for 
Search instead for 
Did you mean: 

ROM Bootloader for Kinetis MKE14F

320 Views
dvalerio
Contributor II

Hi!

I want to use the ROM Bootlader for the Kinetis MKE14F.

Can someone help me how to make it possible?

I am using the MKE14F512VLH16, is the ROM Bootloader supported for this chip?

I have MCUXpresso and the Kinetis KE1xF Sub-Family Reference Manual, but I really don't get a clear way to program the chip to use the Bootloader.

Best Regards,

Diego.

Labels (1)
6 Replies

140 Views
nxf56274
NXP TechSupport
NXP TechSupport

Hi,

MKE14F512VLH16 has the rom bootloader. You can find the detail in "www.nxp.com/kboot".
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

140 Views
dvalerio
Contributor II

Thanks. I am having troubles configuring it to use it, which way do I have to configure/program the MKE14F512VLH16 to enable the ROM Bootloader?

Best regards,

Diego

0 Kudos

140 Views
nxf56274
NXP TechSupport
NXP TechSupport

Hi,

pastedImage_3.png

There are three ways to enter the rom bootloader.

pastedImage_1.png

We can use pin NMI for us to enter the bootloader. You would better erase your chip first. Then press the NMI button to give it a low level. Finally ,power on. You can use our tool "blhost" to test if enter the rom bootloader.  


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

140 Views
mjbcswitzerland
Specialist V

Hi

Your chip has a ROM Loader:

pastedImage_1.png

You can define whether it is used (always or when BOOTCFG0/NMI is asserted) by setting the flash configuration FOPT accordingly.

Regards

Mark

140 Views
dvalerio
Contributor II

Hi Mark. Can you explain me how to set the flash configuration FOPT to make it both ways?

I understand once it is configured, I only have to use the KinetisFlashTool to boot the chip, right?

Best regards.

Diego.

0 Kudos

140 Views
mjbcswitzerland
Specialist V

Diego

If you start with deleted flash (no program loaded) the ROM loader will start automatically.

Otherwise you need to control it via the flash configuration (the values written at 0x400..0x40f). These are some settings that we use in the uTasker project for the KE14 (and various others that are compatible).

#define KINETIS_FLASH_CONFIGURATION_NONVOL_OPTION  (FTFL_FOPT_LPBOOT_CLK_DIV_1 | FTFL_FOPT_RESET_PIN_ENABLED | FTFL_FOPT_BOOTSRC_SEL_FLASH | FTFL_FOPT_BOOTPIN_OPT_DISABLE | FTFL_FOPT_NMI_DISABLED) // never use boot ROM


#define KINETIS_FLASH_CONFIGURATION_NONVOL_OPTION  (FTFL_FOPT_LPBOOT_CLK_DIV_1 | FTFL_FOPT_RESET_PIN_ENABLED | FTFL_FOPT_BOOTSRC_SEL_FLASH | FTFL_FOPT_BOOTPIN_OPT_ENABLE | FTFL_FOPT_NMI_DISABLED) // use boot ROM if NMI is held low at reset


#define KINETIS_FLASH_CONFIGURATION_NONVOL_OPTION (FTFL_FOPT_BOOTSRC_SEL_ROM | FTFL_FOPT_BOOTPIN_OPT_DISABLE | FTFL_FOPT_FAST_INIT | FTFL_FOPT_LPBOOT_CLK_DIV_1 | FTFL_FOPT_RESET_PIN_ENABLED | FTFL_FOPT_NMI_DISABLED) // always use boot ROM

To be exact, the value of interest is programed at 0x40d and 0x19 is typically used  to boot to the loader only when the BOOTPIN is held at 0 at reset.

Regards

Mark

0 Kudos