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.
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.
-------------------------------------------------------------------------------
Hi,
There are three ways to enter the rom bootloader.
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.
-------------------------------------------------------------------------------
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.
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