NXPHlite-V3:Add reset to bootloader detection

On the K66 we use the first word of the Battery backed up RAM
   as the bootloader - app communication location.
This commit is contained in:
David Sidrane 2018-07-02 10:40:55 -07:00 committed by Daniel Agar
parent cb58fa5131
commit 35960fb012

View File

@ -42,6 +42,8 @@
#include <nuttx/board.h>
int board_set_bootload_mode(board_reset_e mode)
{
uint32_t regvalue = 0;
@ -59,8 +61,7 @@ int board_set_bootload_mode(board_reset_e mode)
return -EINVAL;
}
// todo: Add a way to enter bootloader
UNUSED(regvalue);
*((uint32_t *) KINETIS_VBATR_BASE) = regvalue;
return OK;
}