From 1d46c944edebf09943cf1cd91891fc4cea0fced8 Mon Sep 17 00:00:00 2001 From: Fabio Utzig Date: Mon, 26 Feb 2018 10:38:00 -0300 Subject: [PATCH] Always enable uart, use blocking mode Signed-off-by: Fabio Utzig --- boot/mynewt/src/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/boot/mynewt/src/main.c b/boot/mynewt/src/main.c index 63a274b9..76280e75 100755 --- a/boot/mynewt/src/main.c +++ b/boot/mynewt/src/main.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "syscfg/syscfg.h" #include #include @@ -31,10 +32,10 @@ #include #include #include +#include #ifdef MCUBOOT_SERIAL #include #include -#include #endif #include #include "bootutil/image.h" @@ -67,13 +68,11 @@ main(void) int rc; hal_bsp_init(); -#ifdef MCUBOOT_SERIAL + /* initialize uart without os */ os_dev_initialize_all(OS_DEV_INIT_PRIMARY); sysinit(); -#else - flash_map_init(); -#endif + console_blocking_mode(); #ifdef MCUBOOT_SERIAL /* @@ -88,6 +87,7 @@ main(void) assert(0); } #endif + rc = boot_go(&rsp); assert(rc == 0);