Closed
Description
Description / Steps to reproduce the issue
Board: raspberrypi-pico / any RP2040 based boards
Config: usbnsh, nsh or any nsh including configs.
Symptoms: Depending on the configuration, broken messages and crashes behave differently. This looks like a typical memory corruption issue. This is seen in the NSH printing garbage or missing lines. But also crashes happen in running ostest
, which also fail at random moments depending on configuration.
Reproduce broken messages:
- Run commands like
help
orls /dev
- Console shows broken messages
Reproduce crash and garbage:
- Press up without history
- Garbage, OS hang or program crashes at a later stage.
- Run ostest on random configurations
- ostest fails at random locations
- use syslog
- fails at random moments and prints garbage
A screenshot of broken messages:
Cross check
- This is tested with the NuttX simulation where this cannot be replicated.
- This appears to get worse when syslog is enabled.
- Any output, serial, RAM or USB produces these results
- STM32 F446RE does not have this issue. It also has no history feature.
Attempts to fix issue
- Updated the Pico SDK. No effect.
- Clean NuttX install. No effect.
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Arch Linux 6.13.7-arch1-1
NuttX Version
Master
Issue Architecture
[Arch: arm]
Issue Area
[Area: OS Components]
Host information
Any configuration with NSH will produce this.
Verification
- I have verified before submitting the report.