-
Notifications
You must be signed in to change notification settings - Fork 3k
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: Enable Flash api on CM3DS #7042
Conversation
This needs rebase to contain only one commit that is now relevant (dependency was merged) |
b3b51be
to
2d50b26
Compare
@hug-dev Could you take a look at this PR? |
Oh, thanks for the update. Just making sure this PR hadn't gone idle :) |
2d50b26
to
9b46fc7
Compare
@hug-dev Another idle check. Any luck with greentea tests? |
@shuoo The reason it's 404'd is because the log was rotated out within Jenkins. I've restarted the job for the time being. I would focus on fixing the idle bug, for now. |
@shuoo This has just passed pr-head tests. Are y'all still having dificulties getting this patch to pass greentea tests? |
9b46fc7
to
0dca412
Compare
With the help of @hug-dev and @tkaman , I'v run flash related test on CM3DS with MPS2 board. This commit may still can not built by CI because of blocked by other platform's flash test. @cmonr If it fails, can you please help to send the details of failure to us? Here are the logs from terminal:
FlashIAP Test:
|
Going to see what CI tests output since CI usage is low atm. |
Build : ABORTEDBuild number : 2538 |
/morph build |
Build : SUCCESSBuild number : 2543 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2187 |
Test : SUCCESSBuild number : 2298 |
/morph mbed2-build |
@mbed-os-hal Last chance to take a look at this before it goes in! |
@@ -70,6 +70,11 @@ struct analogin_s { | |||
uint16_t ctrl_register; /* Control bits with the channel identifier */ | |||
}; | |||
|
|||
/* This structure is not used by the HAL implementation. */ | |||
struct flash_s { | |||
uint32_t not_used; |
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.
I guess this field is defined for compatibility with IAR and ARMC5 but for consistency shouldn't it be a uint8_t
like in struct trng_s
?
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.
Use uint8_t for consistent.
@c1728p9 Please review this use case |
Implement flash_api.c for CM3DS on MPS2+. Because MPS2+ board has no physical flash chip, the implementation emulates flash over SRAM.
0dca412
to
bbb97c8
Compare
/morph build |
Build : SUCCESSBuild number : 2562 Triggering tests/morph test |
Test : SUCCESSBuild number : 2317 |
Exporter Build : SUCCESSBuild number : 2207 |
/morph mbed2-build |
Flash API: Enable Flash api on CM3DS
Description
Implement flash APIs for CM3DS on MPS2+. This function is necessary for IAP and other flash related operations.
Pull request type