commit | 1d0467e8339f91b0dac9cb0bcedb131cdf7ac63d | [log] [tgz] |
---|---|---|
author | Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl> | Sat Nov 21 23:45:34 2020 +0100 |
committer | Fabio Utzig <utzig@utzig.org> | Wed Nov 25 12:36:10 2020 -0300 |
tree | 0d2a981d04fe4ef28ac869e97286aa08e409deb7 | |
parent | a8e12dae381080e898cea0c6f7408009b0163f9f [diff] |
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>
This is mcuboot version 1.7.0
MCUboot is a secure bootloader for 32-bit MCUs. The goal of MCUboot is to define a common infrastructure for the bootloader, system flash layout on microcontroller systems, and to provide a secure bootloader that enables simple software upgrades.
MCUboot is operating system and hardware independent and relies on hardware porting layers from the operating. Currently, mcuboot works with both the Apache Mynewt and Zephyr operating systems, but more ports are planned in the future. RIOT is currently supported as a boot target with a complete port planned.
Instructions for different operating systems can be found here:
The issues being planned and worked on are tracked using GitHub issues. To participate please visit:
Issues were previously tracked on MCUboot JIRA , but it is now deprecated.
Information and documentation on the bootloader are stored within the source.
It was previously also documented on confluence: MCUBoot Confluence however, it is now deprecated and not currently maintained
For more information in the source, here are some pointers:
Developers welcome!