Commit 3b69d6f8 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Deinit timer after serial load is finished

This fixes an issue where the bootloader is activating a timer that is
later not used by the installed target image causing a non handled interrupt
fault.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 5901fd55
Loading
Loading
Loading
Loading
+1
Changes for boot/mynewt/src/main.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -221,6 +221,7 @@ main(void)
    console_blocking_mode();
#if defined(MCUBOOT_SERIAL)
    serial_boot_detect();
    hal_timer_deinit(MYNEWT_VAL(OS_CPUTIME_TIMER_NUM));
#endif
#else
    flash_map_init();