-
Notifications
You must be signed in to change notification settings - Fork 13
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: problems with ESP32 and tests/periph_uart #54
Comments
I can observe exactly the same behaviour when the RobotFW-tests/tests/periph_uart/main.c Line 151 in 9d418dd
uart_write 1 flush command.
Figure 2: with PR #12955
|
@MrKevinWeiss Do you have any idea what the problem might be? |
Did you try rerunning the tests a few times?
Does this mean all RF tests pass in master and not with #12955? My initial thought is that the mode is not getting set in PHiLIP, which would be a PHiLIP communication problem but if the PR is reproducibly causing the failure then that doesn't make that much sense. We do see that the extended mode (ie read a byte and add one to it) is not correct. I was thinking about removing the test actually since I only wanted to check if echo works and if not echo works (which is accomplished with the read register mode). ...Super cool that you are using this! |
Yes.
Exactly.
It's a very cool tool. I really like having tools like that. I knew of its existence until @yegorich pointed it out to me in RIOT-OS/RIOT#11418 and I first tried the Nightlies tab on Murdock. The only question for me is what the consequences of HIL tests are. What are the penalties? At the moment it doesn't matter obviously when HIL tests fail for a platform. There seem to be a lot of HIL test that fail for different platforms. However, my personal goal is that all HIL tests pass for ESP32. That is why I am currently testing so meticulously. |
Currently, there are none aside from fixing bugs if we notice something in the nightly or if we are using it to test a PR.
My idea (which sometimes differs from other) is to more make it a list of what is supported or not. There are some tests that may just not pass or work (for example some i2c tests on the stm32 boards). As well as adding tests to expose improper behavior without the requirement to fix everything (so we can have something like a todo list). I would like the output of a test to update a database of features supported and current benchmarks I am hoping to simplify the management of a lot of this by adding some sort of regression that can also be used for benchmarks. So we only care if tests that were passing start failing. Currently, it still seems like the majority of failures are from infrastructure issues (though it has been reduced quite a bit) or, possibly from the PHiLIP implementation. The worst is toggling because a bit was missed (this makes regression testing hard). |
When I was testing PR #12955 as DUT with a
nucleo-f103rb
, I encountered a problem withtests/periph_uart
. While all tests are working with ESP32 and the current RIOT master, the following tests fail with PR #12955 for the ESP32.With the logic analyzer, no difference can be observed from the ESP32 side. The following snapshots show the reaction of ESP32 to the
uart_write 1 flush
command.Figure 1: with current master
Figure 2: with PR #12955
The signals in these snapshots are
UART0_RX
UART0_TX
UART1_RX/DUT_TX
PHiLIP-n
to ESP32UART1_TX/DUT_RX
PHiLIP-n
DUT_RST
PHiLIP-n
to ESP32That is channel 3 and 5 are the signals generated by the ESP. The signal in channel 5 is the reaction of the ESP32 on the command
uart_write 1 flush
. In both cases, the test stringflush
is sent from ESP32 toPHiLIP-n
. But in second case,PHiLIP-n
doesn't answer with the incremented string.Therefore, the
uart_write 1 flush
command is repeated after 2 seconds without any reaction fromPHiLIP-n
beforePHiLIP-n
restarts after a further second.The only visible difference is that the ESP32 sends the test string on UART1 one character earlier relative to the output on UART0.
The complete captures from the logic analyzer:
master.logicdata.zip
deduplication.logicdata.zip
The
Extended Short Echo
test starts about 4 seconds after the firstDUT_RST
pulse in channel 6.The text was updated successfully, but these errors were encountered: