--reboot-to-bootloader
This commit is contained in:
1 parent
9407be8ea8
commit
0d41ed0bba
3 files changed
+55
-1
No files matched your search
@@ -595,6 +595,15 @@ int flash_start_flashing(int enable_bl_writes, char *serial_port_name, uint32_t
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
// Reboot into bootloader
|
||||
int flash_reboot_bootloader(char *serial_port_name) {
|
||||
int ret;
|
||||
|
||||
ret = enter_bootloader(serial_port_name);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int write_block(uint32_t address, uint8_t *data, uint32_t length) {
|
||||
uint8_t block_buf[BLOCK_SIZE];
|
||||
memset(block_buf, 0xFF, BLOCK_SIZE);
|
||||
|
||||
Reference in new issue
Block a user