Skip to content

Error creating MCUboot files in OTA partition #515

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

Closed
romainreignier opened this issue Jul 5, 2022 · 7 comments · Fixed by #516
Closed

Error creating MCUboot files in OTA partition #515

romainreignier opened this issue Jul 5, 2022 · 7 comments · Fixed by #516

Comments

@romainreignier
Copy link
Contributor

I have ran the sketch STM32H747_manageBootloader.ino in order to try MCUBoot bootloader.

But when I try to install it, I have the following error message:
Error creating MCUboot files in OTA partition

And the board has the red blink SOS signal.

Do you want to install/update the default Arduino bootloader? Y/[n]
Choosing "No", will install/update the MCUboot bootloader.

MCUboot has been selected. Do you want to proceed? Y/[n]

A different bootloader type is available: v6
Do you want to update the bootloader? Y/[n]
Error creating MCUboot files in OTA partition

Creating scratch file
Flashed 0%

I have tried directly with the default v21 bootloader and then updated it to v23 but in both case the result is the same.

Do I have to change the flash split setting in the IDE? I have the default 1MB M7 and 1MB M4 setting.

@pennam
Copy link
Contributor

pennam commented Jul 5, 2022

Hi @romainreignier,
flash split is not involved in this process. It looks like there is an issue with the QSPI flash. Do you mind to run this sketch to format your QSPI flash and then re-run STM32H747_manageBootloader.ino

@romainreignier
Copy link
Contributor Author

Hi @pennam
Thank you for you fast reply.
Which partition scheme should I use? 1 or 2?

@pennam
Copy link
Contributor

pennam commented Jul 5, 2022

both should work, the default scheme is 1

@romainreignier
Copy link
Contributor Author

Ok, thanks.
Maybe a log message should indicate to run this sketch in case of an error in the STM32H747_manageBootloader.ino sketch.

@pennam
Copy link
Contributor

pennam commented Jul 5, 2022

my plan was to integrate the scratch and update file creaton in the bootloader itself amd remove them from this sketch, but adding a log message is a good idea. Let me know if formatting the QSPI solves your issue.

@romainreignier
Copy link
Contributor Author

Yes, I have managed to flash MCUBoot bootloader. Thanks!

Should I close the issue or keep it open to remind you to add the log message?

@pennam
Copy link
Contributor

pennam commented Jul 5, 2022

Let's keep it open and i will try to add the message tomorrow to not forget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants