apache / apache/nuttx

[BUG] RP2040 Unstability, garbled NSH

Open
#16,305 18 comments 4 reactions 0 assignees View on GitHub
Arch: arm Area: Kernel OS: Linux OS: Other Type: Bug
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

### Description / Steps to reproduce the issue

This is a corrected continuation of https://github.com/apache/nuttx/issues/16139
And also happening on the nuttx-app side https://github.com/apache/nuttx-apps/issues/3063
And possible links to all the RP23xx issues.

As the firmware becomes more complex with more threads and increased memory usage, the NSH shell output gets progressively more garbled. This is most noticeable when running commands like help or ps, but it can also happen when using printf in applications. The issue shows up in both usbnsh and nsh configurations, especially when additional drivers and random applications are added.

In worse cases, this corruption can even cause the system to hang, including during ostest. Increasing the stack size does not solve the issue.

I previously mentioned that USB might be related, but that's not the case. This problem is more widespread.

I’m sharing this to raise awareness, since I haven’t been able to track it down myself. I’ve spent many hours trying, but nothing improved. The issue also has a tendency to hide and come back later, making it even harder to pin down.

I hope we can find the problem in this github issue.

### On which OS does this issue occur?

[OS: Other], [OS: Linux]

### What is the version of your OS?

Arch

### NuttX Version

Master

### Issue Architecture

[Arch: arm]

### Issue Area

[Area: Kernel]

### Host information

_No response_

### Verification

- [x] I have verified before submitting the report.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.