diff --git a/src/main.c b/src/main.c index f45dab4..51a34f9 100644 --- a/src/main.c +++ b/src/main.c @@ -349,7 +349,7 @@ main(int argc, char *argv[]) /* Wait for the device to send the BOOTME sequence. * If the UBL is already running, it will send BOOTPSP. */ - found = wait_for_message("BOOTME", "BOOTPSP", NULL); + found = wait_for_message("BOOTME", "BOOTPSP", "I_ME"); if (found == 0) goto error; else if (found == 1) { @@ -358,6 +358,10 @@ main(int argc, char *argv[]) ret = send_binary(options->ubl, "/tmp/ubl.bin", SEND_UBL, 0, 0); if (ret) goto error; + } else if (found == 3) { + log_info("Sending interrupt command to UBL ($%08X)", 0x23); + send_message(" CMD\n"); + send_number(0x23, 8); } /* UBL is now running. Send command */