1d0467e833
mynewt code calls hal_bsp_init() at start of bootloader. This may initialize some resources (timer/uart/dma). mynewt has now hal_bsp_deinit() function that should be called before application is executed. This new function allows to stop resources that were started. This can stop cputimer which was started including enabled interrupt. This timer interrupt was very likely to fire for STM devices that has 16 bits timer used, when mcuboot did not started LSE and application wanted to. Starting LSE oscillator takes so much time in some cases that timer interrupt will execute MCU from mcuboot vector after RAM was already cleared by startup code and that would lead to crash loop. Blocking interrupts before starting application would also help but leaving peripherals in reset state seems reasonable. Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl> |
||
---|---|---|
.. | ||
boot_uart | ||
flash_map_backend | ||
mcuboot_config | ||
src | ||
README.md | ||
pkg.yml | ||
syscfg.yml |
README.md
mcuboot - apps/boot
This sample app implements a boot loader for the Mynewt OS (apache.mynewt.org). This app requires the following Mynewt repositories: * @mcuboot (this one) * @apache-mynewt-core