-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
tests: benchmark: multicore: Test PWM with low power modes #17380
base: main
Are you sure you want to change the base?
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 8b0954e9a433e03fa7beeb998c6d16a4c6c51cfc more detailssdk-nrf:
zephyr:
Github labels
List of changed files detected by CI (21)
Outputs:ToolchainVersion: 9583beca34 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
cdcbe0e
to
3ec29a8
Compare
Tested manually without PPK / amperemeter. 'benchmarks.multicore.idle_with_pwm.nrf54h20dk_cpuapp_cpurad.no_sleep' loops as expected - LED2 lights up, then OFF for ~1 sec, then lights up again, etc. 'benchmarks.multicore.idle_with_pwm.nrf54h20dk_cpuapp_cpurad.s2ram' doesn't work as expected. No PWM signal after entering low power mode - LED2 lights up, then it's OFF forever. It looks like some PWM/GPIO configuration is missing after system restores from low power. |
3ec29a8
to
de6dc40
Compare
6605d4d
to
01b02c6
Compare
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publishing GitHub Action. |
01b02c6
to
76d64b9
Compare
tests/benchmarks/multicore/idle_with_pwm/remote/boards/nrf54h20dk_nrf54h20_cpurad.overlay
Outdated
Show resolved
Hide resolved
6b4b85b
to
83c201d
Compare
83c201d
to
6bed1f1
Compare
dd59b7a
to
4c06f99
Compare
/ { | ||
power-states { | ||
idle: idle { | ||
compatible = "zephyr,power-state"; | ||
power-state-name = "suspend-to-idle"; | ||
min-residency-us = <100000>; | ||
}; | ||
|
||
s2ram: s2ram { | ||
compatible = "zephyr,power-state"; | ||
power-state-name = "suspend-to-ram"; | ||
min-residency-us = <800000>; | ||
}; | ||
}; | ||
}; |
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.
power states should be part of soc dts files.
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 just checked, power-states are not defined for nrf54h20 at the moment.
I believe that tests in nrf/tests/benchmarks/multicore are more prof-of-concept rather than a final solution.
My task is to confirm that PWM works after leaving low power state.
For now, I prefer to leave it as is.
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.
Can you then open a PR adding them to soc dts files?
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 prefer not. I don't want to be associated with the PM implementation in nrf54h20 😄
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 will regret that
zephyrproject-rtos/zephyr#79098
nrfconnect/sdk-zephyr#2052
6bf427f
to
3f58b82
Compare
3f58b82
to
fb290bd
Compare
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
Add test that confirms correct operation of PWM when target enters and leaves low power mode. Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
Instead of defining power states per test, add power states to the nrf54h20/cpuapp target definition. Remove power states from tests overlays to prevent build failures due to duplicated node definitions. Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
648ffc8
to
8b0954e
Compare
Add test that confirms correct operation of PWM
when target enters and leaves low power mode.