-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Network connection unreliable on nucleo_f767zi #77794
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
Comments
Updated bug report after it turned out that Zephyr |
@jkrautmacher can you please confirm that ? |
I would be glad to help but unsure what to confirm. As far as I understood the current theory is that the power supply of the PHY on If this is correct my next debugging step would be to connect an oscilloscope to the supply voltage of the PHY and observe it during init. That together with a debug GPIO from the kernel code which toggles right before and after Ethernet init should validate this theory or not. The next step would be to either fix the hardware design or to add a workaround to the Zephyr kernel (longer delays or similar). I am lacking two things to verify the theory:
Is there maybe more public information about the board than in UM1974 Rev 10 I overlooked? The oscilloscope situation I could maybe improve but it would likely be way faster if you could do that at ST if this is an option. |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
Since it was easy to test for me I checked how the board / firmware behaves with an external power supply instead of powering it via USB. I moved the jumper on JP3 from U5V to VIN-5V and provided 12 VDC to VIN and GND on CN8. Result is: So this did not fix it. Updated the initial bug report accordingly. |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
I tried to reproduce this issue using the same SDK version and both Zephyr versions mentioned. I tested it on the nucleo_f429zi and disco_h745i boards, and consistently obtained a 100% success rate:
@jkrautmacher — is this still an issue on your side? Were you able to resolve it? |
@jkrautmacher Quick update on my previous comment: I managed to get a brand new At this point, it seems likely that the issue might have been related to the board hardware itself (e.g., a faulty connector or similar). |
Describe the bug
While working on a quite minimal Zephyr firmware for the
nucleo_f767zi
board I noticed that the network connection is unreliable. As shown below this is reproducible with thenet/telnet
sample.The bug can be noticed by the following indicators:
stm_eth
thread has significantly lower stack usage (see shell output ofkernel stacks
)The bug appears after roughly 40 % of the boot processes. It was so far not observed that network communication breaks later if it was operational directly after booting the board.
To Reproduce
Steps to reproduce the behavior:
nucleo_f767zi
board with an Ethernet cable to a Linux PC192.0.2.2/24
on the PCst-info
tool (see e.g. source repo)samples/net/telnet
as described in the Getting Started GuideExpected behavior
It is expected that the used script reports 100 % success rate.
Impact
This bug is a showstopper. A firmware with such an unreliable network connection is useless.
Logs and console output
The script summarizes a test with 100 iterations on my setup with:
Success rate is 39 % (39 ok and 61 failed)
forzephyr v3.6.0
Success rate is 44 % (44 ok and 56 failed)
forzephyr v3.7.0
Success rate is 49 % (49 ok and 51 failed)
forzephyr v3.7.0
with external power supply (12 V via VIN)Success rate is 57 % (57 ok and 43 failed)
forzephyr v4.0.0
Environment (please complete the following information):
0.16.5
v3.7.0
andv3.6.0
The text was updated successfully, but these errors were encountered: