-
-
Notifications
You must be signed in to change notification settings - Fork 665
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
Flash interface refactoring #3385
Conversation
e7fee67
to
b66856a
Compare
1641d98
to
c4d508e
Compare
b66856a
to
8d78b28
Compare
c4d508e
to
1e13029
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of comments below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, please fix the residual style issues, squash and add [no changelog] to the commit message
d26260b
to
bb6f9d8
Compare
8a6223f
to
1bb4680
Compare
2b714cc
to
dda5b6f
Compare
One more thing to solve before merging this into U5 branch: since trustzone initialization refactor has now been merged and the allocation of flash pages between secure/non-secure is no longer only dependent on option bytes, |
1f645a3
to
a74a954
Compare
@TychoVrahe After our discussion, I've removed the detection of secure and non-secure pages, see a74a954 |
a74a954
to
96ac55b
Compare
3f94ef5
to
64508fa
Compare
[no changelog]
96ac55b
to
1d5f3db
Compare
I've refactored the code for handling flash programming/erasing with following goals:
The result is not perfect, and achieving perfection would require deep ploughing, but the refactoring has successfully reduced some technical debt and leaves room for further enhancements and improvements.
The significant change is that
flash_common.h
has been split intoflash_area.h
andflash_ll.h
. All code dealing with flash areas now resides inflash_area.c
. HAL drivers for flash implement interface defined inflash_ll.h
.