@@ -463,20 +463,25 @@ int main(void)
463
463
mcuboot_status_change (MCUBOOT_STATUS_STARTUP );
464
464
465
465
#ifdef CONFIG_BOOT_SERIAL_ENTRANCE_GPIO
466
+ BOOT_LOG_DBG ("Checking GPIO for serial recovery" );
466
467
if (io_detect_pin () &&
467
468
!io_boot_skip_serial_recovery ()) {
468
469
boot_serial_enter ();
469
470
}
470
471
#endif
471
472
472
473
#ifdef CONFIG_BOOT_SERIAL_PIN_RESET
474
+ BOOT_LOG_DBG ("Checking RESET pin for serial recovery" );
473
475
if (io_detect_pin_reset ()) {
474
476
boot_serial_enter ();
475
477
}
476
478
#endif
477
479
478
480
#if defined(CONFIG_BOOT_USB_DFU_GPIO )
481
+ BOOT_LOG_DBG ("Checking GPIO for USB DFU request" );
479
482
if (io_detect_pin ()) {
483
+ BOOT_LOG_DBG ("Entering USB DFU" );
484
+
480
485
usb_dfu_requested = true;
481
486
482
487
#ifdef CONFIG_MCUBOOT_INDICATION_LED
@@ -498,6 +503,7 @@ int main(void)
498
503
BOOT_LOG_INF ("Waiting for USB DFU" );
499
504
500
505
#if defined(CONFIG_BOOT_USB_DFU_WAIT )
506
+ BOOT_LOG_DBG ("Waiting for USB DFU for %dms" , CONFIG_BOOT_USB_DFU_WAIT_DELAY_MS );
501
507
mcuboot_status_change (MCUBOOT_STATUS_USB_DFU_WAITING );
502
508
wait_for_usb_dfu (K_MSEC (CONFIG_BOOT_USB_DFU_WAIT_DELAY_MS ));
503
509
BOOT_LOG_INF ("USB DFU wait time elapsed" );
@@ -529,12 +535,14 @@ int main(void)
529
535
if (FIH_EQ (fih_rc , FIH_BOOT_HOOK_REGULAR )) {
530
536
FIH_CALL (boot_go , fih_rc , & rsp );
531
537
}
538
+ BOOT_LOG_DBG ("Left boot_go with success == %d" , FIH_EQ (fih_rc , FIH_SUCCESS ) ? 1 : 0 );
532
539
533
540
#ifdef CONFIG_BOOT_SERIAL_BOOT_MODE
534
541
if (io_detect_boot_mode ()) {
535
542
/* Boot mode to stay in bootloader, clear status and enter serial
536
543
* recovery mode
537
544
*/
545
+ BOOT_LOG_DBG ("Staying in serial recovery" );
538
546
boot_serial_enter ();
539
547
}
540
548
#endif
0 commit comments