mcuboot icon indicating copy to clipboard operation
mcuboot copied to clipboard

MCUboot boot-up time

Open aniruddhanalgirkar-eaton opened this issue 3 years ago • 3 comments

Hi, Recently we deployed the MCUboot in one of our device. In this, we selected the SWAP method, BOOT_VALIDATE_SLOT0 is selected as n. so, under this configuration, I called the API, k_uptime_get(); just before the application is getting called in the MCUboot main.c file. And thus, I measure the boot-up time as 31 ms. I want this to be lesser than this. (assume, 15 - 21 ms could be acceptable). So, how much minimum can it be ? How to optimize it further ? Thanks for any additional suggestions !

Can you turn off LOG and measure the timing using a gpio? I suspect that most of the time you had measured is just needed for log transmission,.

nvlsianpu avatar Feb 18 '22 15:02 nvlsianpu

Also, what kind of CPU does your device have? A Cortex-M0 will be a lot slower than a larger device would be.

Unless you have a particularly unusual flash device, I would recommend SWAP_MOVE instead of SWAP_SCRATCH. There is no swap partition needed, but the slot 0 should be 1 sector larger than slot 1.

d3zd3z avatar Feb 25 '22 23:02 d3zd3z

the SWAP_MOVE option greatly reduced the boot-up time. Next, I am going to try with "config BOOT_TIME_MEASUREMENT" to measure it better way. Thanks !

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

github-actions[bot] avatar Sep 01 '22 03:09 github-actions[bot]