mcuboot/boot/mynewt
Jerzy Kasenberg 1d0467e833 boot/mynewt: De-initialize peripherals before calling app
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>
2020-11-25 12:36:10 -03:00
..
boot_uart boot_uart: mynewt; option for faster speed with serial. 2018-12-24 08:47:25 -02:00
flash_map_backend boot: mynewt: add config for swap without scratch 2019-12-09 14:21:09 -03:00
mcuboot_config boot: mynewt: add ECIES-X25519 support 2020-04-10 17:56:14 -03:00
src boot/mynewt: De-initialize peripherals before calling app 2020-11-25 12:36:10 -03:00
README.md Make mcuboot less mynewt style 2017-06-02 10:55:27 -07:00
pkg.yml mynewt: Make cflags consistent for if or ifdef usage 2019-10-21 17:22:34 -03:00
syscfg.yml mynewt: allow overriding the startup routine 2019-10-21 17:21:27 -03:00

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