Skip to content
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

[BUG] w5500-evb-pico is not reachable over usbnsh #15549

Open
1 task done
bskdany opened this issue Jan 14, 2025 · 5 comments
Open
1 task done

[BUG] w5500-evb-pico is not reachable over usbnsh #15549

bskdany opened this issue Jan 14, 2025 · 5 comments
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Board support Board support issues OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working

Comments

@bskdany
Copy link

bskdany commented Jan 14, 2025

Description / Steps to reproduce the issue

The w5500-evb-pico appears offline after flashing config usbnsh starting with commit 1fe07d0838084016b47aeb4650dfec29590f45be which is related to pr #15285

Steps to riproduce:

  1. git checkout 1fe07d0838084016b47aeb4650dfec29590f45be
  2. ./tools/configure.sh -l w5500-evb-pico:usbnsh
  3. sudo dmesg says the device appears offline
  4. Repeating the same process with the commit coming right before it badb5c5ac69574aca724a79f5256e8d8b49e8ba8 shows that it is perfectly functional

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Pop!_OS 22.04 LTS

NuttX Version

master

Issue Architecture

[Arch: arm]

Issue Area

[Area: Board support]

Verification

  • I have verified before submitting the report.
@bskdany bskdany added the Type: Bug Something isn't working label Jan 14, 2025
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Area: Board support Board support issues OS: Linux Issues related to Linux (building system, etc) labels Jan 14, 2025
@acassis
Copy link
Contributor

acassis commented Jan 16, 2025

@wengzhe any idea why that commit could break usbnsh ?

@linguini1
Copy link
Contributor

@wengzhe any idea why that commit could break usbnsh ?

If I had to guess it might be that something is crashing before NSH is booted, the startup time is quite long on the working builds which I'm guessing is due to starting the networking services

@linguini1
Copy link
Contributor

I have bisected myself and I am of the impression that this was a mistaken perception of fail to boot because of the duration of the boot sequence when starting networking services. I am able to boot the W5500-EVB-Pico on the latest master branch of both the nuttx-apps and nuttx kernel repos. I'll wait for @bskdany to test again and confirm but I think this issue might be able to be closed

@justapotato213
Copy link

I can reproduce the same issue on Windows 11 with WSL, using commit badb5c5 has the device in device manager show up while 1fe07d0 doesn't.

If I had to guess it might be that something is crashing before NSH is booted, the startup time is quite long on the working builds which I'm guessing is due to starting the networking services

One thing I noticed is that the board's debug LED remains solid with badb5c5 while flashes on and off repeatedly with 1fe07d0, so your theory seems right.

@acassis
Copy link
Contributor

acassis commented Jan 20, 2025

I can reproduce the same issue on Windows 11 with WSL, using commit badb5c5 has the device in device manager show up while 1fe07d0 doesn't.

If I had to guess it might be that something is crashing before NSH is booted, the startup time is quite long on the working builds which I'm guessing is due to starting the networking services

One thing I noticed is that the board's debug LED remains solid with badb5c5 while flashes on and off repeatedly with 1fe07d0, so your theory seems right.

The the status LED flashes, it means the system crashed. Probably you need to increase the stack size to get it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Board support Board support issues OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants