-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion when performing the image swap #2146
Comments
The mbed port of MCUboot is not and has not been maintained for quite some time and is unlikely to be looked at again due to the whole project being abandoned. If you cannot replicate said issue without mbed then I would suggest moving to an alternative supported platform |
This is not an option because I spent 2 years in developing a product that once began with mbed when it wtill was active. Then I switched to mbed-ce and the bootloader is now the final part of the development. Of course for next developments or next products I will look to alternatives. |
You don't need to build the bootloader in the mbed port to boot an mbed application, depending upon your host MCU, if it's supported in zephyr you could set up your board in zephyr, configure partitions as they are in your mbed application then build the bootloader using zephyr and use it with your mbed application, that is what I would suggest (depending upon effort required), otherwise you would likely have to look at the unmaintained mbed code here to find issues and patch them/post PRs to fix it |
I think it must be a setting somewhere; when I add in bootutil_public.c at the point something is written in the image trailer:
I get:
|
The solution is to add a config at both in mcuboot as in the app:
Il looks like a setting in the mbed port wich is not provided. |
I wrote some test programs with mbed-ce and cmake.
After the first run, something is written in de flash chip and after a reboot I always get:
assertion "rc == 0" failed: file "/home/sam/git/mcuboot/mcuboot/boot/bootutil/src/swap_misc.c", line 105, function: swap_status_init
Test projects are open:
Because there is a mux chip between the MCU and the flash I inserted in mcuboot main, but with no effect:
Full log log.txt
The text was updated successfully, but these errors were encountered: