-
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
Enable low-power ticker and Sleep for FastModels #10124
Conversation
@@ -74,9 +74,10 @@ Case cases[] = { | |||
Case("1 s delay during deepsleep (attach_us)", test_deepsleep<AttachUSTester<LowPowerTimeout>, 1000000, LONG_DELTA_US>, | |||
greentea_failure_handler), | |||
#endif | |||
|
|||
#if !defined(__ARM_FM) //FastModels not support time drifting test |
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 it OK to remove some tests because they are not passing....?
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.
Not sure how is it not supported?
@ARMmbed/mbed-os-hal to review
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 is same story as #10030
For partner's targets/platforms, which will be used real life production. we are not allow them to skip tests, if they can't make them pass. The tests are mean to check that all platform comply with mbed HAL API.
FastModel it is a software simulator for Arm platform/cores. mean to be used as a tool for testing or early stage development. It is will never be used for any real IoT products.
They can simulator how ARM core works. One of issue for software simulator is they running on your host PC, they can't grantee the timing accuracy as microelectronics.
So the exception is just for the software models
@jamesbeyond, thank you for your changes. |
Attched the GreenTea test results:
|
@jamesbeyond I really liked the response for why the test is being skipped for this target (#10124 (comment)) Would you mind ammending the commit that adds that line so that the commit history has that information? |
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.
Awaiting commit update
- reanme US_TICKER_TIMER1 to US_TICKER_COUNTER - reanme US_TICKER_TIMER2 to US_TICKER_INTERRUPT
FastModels are a software simulator for Arm platform/cores. They mean to be used as a tool for testing or early prototype stage development. Due to the nature of software simulator can't grantee the timing accuracy like HW. So time drifting test is skipped for software models.
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.
One small addition - SPDX identifier to new files (sleep_api.c file). Otherwise LGTM
WIll schedule CI as soon as license is fixed in two files
@0xc0170 |
CI started |
Test run: FAILEDSummary: 1 of 13 test jobs failed Failed test jobs:
|
Checking the failed exporter test, it failed at
|
CI job restarted: ARMc6 license issue. |
Description
This PR enabled low-power ticker and Sleep HAL API for FastModels.
with enabling of low-power and Sleep API would allow FastModels run more greentea tests.
Pull request type