mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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:
parent
cb58fa5131
commit
35960fb012
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user