-
Notifications
You must be signed in to change notification settings - Fork 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/periph/uart: clean up and add power off cmd #20654
Conversation
This updates the test app to use the XFA shell interface and ztimer. In addition, a shell command to power off the UART interface is added to e.g. confirm that power consumption indeed goes down.
I can confirm that the XFA changes work as expected, all commands are still call-able. The off-command works on the nRF52DK and nRF52840DK (but without PR #19926 ) it obviously doesn't do very much. The off-command works on the NUCLEO-G474RE as well, however it does not appear to fully disable the UART. The current is measured at JP6, which is labeled "IDD". The current consumption goes back to the value of "Idle after boot" when I hit the reset button. Most likely this has nothing to do with your changes. On the NUCLEO-L073RZ it works too, however it is somewhat more difficult to measure because the current consumption constantly wanders all over the place... Everything below this line is not caused by your changes. The "test" command does reeeeeeally work reliably for me, but that is not caused by your changes. There appear to be two separate issues with this test command:
Initially, the test always fails with the 0xFFFFFFFf content in the buffer. On the next try, there is probably some stuff from the previous run and on the third try, it seems to succeed on the lower baudrates and then trips over the first issue.
The NUCLEO-G474RE has a similar behaviour:
UPDATE:
|
Contribution description
This updates the test app to use the XFA shell interface and ztimer. In addition, a shell command to power off the UART interface is added to e.g. confirm that power consumption indeed goes down.
Testing procedure
The test should work as before, except for one shell command to power down the UART being added.
Issues/PRs references
None