KE15z - cannot get out of ROM bootloader mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KE15z - cannot get out of ROM bootloader mode

687 Views
bensonpeter
Contributor I

Hi,

I've started a project with KE15Z. I have to flash the image into this controller using the ROM bootloader over UART. And I got successful with this. But I am not able to go back to the normal mode. Even after a power cycle/reset(with NMI pin HIGH) board boots into the bootloader mode. I don't see anything about it in the reference manual also.

For flashing a new image into the board, I force the controller into the bootloader mode by pulling the NMI pin low during the reset. Then I use the blhost binary to flash the s19 image.

I tried the command "reset" from the blhost console. But it did not help. Also, I observe that on a reset/power cycle, the board jumps to the application after some timeout. 

Any help is very much appreciated. Thanks in advance. 

Labels (1)
0 Kudos
1 Reply

556 Views
mjbcswitzerland
Specialist V

Hi

Check your Flash configuration (Non-volatile option) since this can be configured to always start from the boot loader, start only when NMI inputs is low or never start from the ROM loader.

 #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

of

#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

or


#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

Regards

Mark

Complete Kinetis solutions, training and support: http://www.utasker.com/kinetis.html
Kinetis KE:
- http://www.utasker.com/kinetis/FRDM-KE02Z.html
- http://www.utasker.com/kinetis/FRDM-KE02Z40M.html
- http://www.utasker.com/kinetis/FRDM-KE04Z.html
- http://www.utasker.com/kinetis/FRDM-KE06Z.html
- http://www.utasker.com/kinetis/FRDM-KE15Z.html

0 Kudos