-
Notifications
You must be signed in to change notification settings - Fork 3k
Flash API support using the MCUXpresso drivers #4064
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 API support using the MCUXpresso drivers #4064
Conversation
|
||
uint32_t flash_get_page_size(const flash_t *obj) | ||
{ | ||
return 1024; |
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.
Is the minimum write unit (page) 1024 bytes or 8 bytes?
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.
Minimum write unit is 8 bytes. Is this what is expected for Page size. This would slow down the program. 1024 should work.
/morph test-nightly |
#include "fsl_flash.h" | ||
|
||
// Storage for flash driver. | ||
flash_config_t g_flash; |
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.
why is this not part of flash_t
?
|
||
int32_t flash_free(flash_t *obj) | ||
{ | ||
return 0; |
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.
No deinit in Flash_ API? Is flash peripheral always on?
{ | ||
int status; | ||
|
||
core_util_critical_section_enter(); |
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.
it might be worth documenting at least in the commit why critical section is used here for a user to be aware?
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
The failures are known (ecb mbedtls on this branch) |
Any update @mmahadevan108 ? |
Signed-off-by: Mahadevan Mahesh <[email protected]>
483ab4d
to
0210900
Compare
I have pushed in an updated patch with fixes based on comments provided. |
retest uvisor |
/morph test-nightly |
/morph test-nightly |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
Merging to the workshop branch (failues above are not related and wont be there once we integrate this against master). |
Flash API support using the MCUXpresso Flash driver
Status
**READY
mbedgt: test suite report: