Skip to content
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

How to add correctly progmem MTDIOC_ERASESTATE call #4836

Closed
tito97sp opened this issue Nov 16, 2021 · 0 comments · Fixed by #4840
Closed

How to add correctly progmem MTDIOC_ERASESTATE call #4836

tito97sp opened this issue Nov 16, 2021 · 0 comments · Fixed by #4840

Comments

@tito97sp
Copy link
Contributor

MCUboot expects that the MTD driver for a given image partition handles the MTDIOC_ERASESTATE ioctl command.

The nucleo-h743zi does not implement this in the mtd_progmem device for using it with embedded flash.

Should I modify the stm32_flash.h to add something like up_progmem_erasestate() function and the mtd_progmem.c driver ioctl to support this functionality or there is other, best suited way?

Modifying mtd_progmem.c driver would affect every board and the migration could be difficult. I am thinking in a particular board oriented solution.

@Ouss4 Ouss4 linked a pull request Nov 16, 2021 that will close this issue
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.

1 participant