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

Make EasyFlash support multiple partation operations with FAL #6

Open
eggcar opened this issue Mar 31, 2020 · 0 comments
Open

Make EasyFlash support multiple partation operations with FAL #6

eggcar opened this issue Mar 31, 2020 · 0 comments

Comments

@eggcar
Copy link

eggcar commented Mar 31, 2020

Although FAL support multiple partitions for multiple physical flash devices, only one partation could be used when porting FAL to EasyFlash.

EasyFlash uses one static global partation descriptor in ef_port.c or ef_fal_port.c, and the api doesn't support passing different partation names or partation descriptors. This is not flexible enough when we got several flash chips (in-chip and off-chip). Only one partation in one chip could be managed by EF.

One way to solve this with least changes is to modify the ef_port_xxx apis, passing partation descriptor or partation name or something else into it, and each function block (env, iap, log...) passes different partation params to port apis. But this makes EF and FAL couples tighter. A more abstract descriptor might be added in EF implementation.

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

No branches or pull requests

1 participant