[BUG] RP2040 ostest fail when usb data is connected
- Dominant language
- C
- Stars
- 4k
- Forks
- 1.7k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 237
Description
### Description / Steps to reproduce the issue
Any RP2040 based boards are not passing the OS test for me.
The OS test **hangs** at the watchdog test.
This happens when the RP2040 based boards are connected to USB.
They do not have to be powered by the USB. It is specifically when they are connected to it.
Crashes depend on what machine its connected to:
- Crashes on my desktop. Windows and Linux.
- Crashes on my macbook. MacOS
- _--Runs fine on my Framework laptop 13. Windows and Linux. (How strange)--_ (Not anymore)
Crashes do not depend on:
- Power supply
- NuttX configuration (so far i can test)
- Board configuration, both config and physical
- USB cable
To reproduce a normal run without crash:
1. Configure a NSH configuration over UART.
2. Connect a UART reader of choice
3. DO NOT connect USB.
4. Connect an external power supply
5. Run `ostest`
6. It should run fine
To reproduce a crash:
1. Configure either NSH or USBNSH config
2. Connect USB (including the datalines)
3. Read out the RP2040 with either USB or UART reader.
4. Run ostest
5. Should crash around the watchdog test
Cross testing:
I could not replicate this on any other microcontroller I have. Most testing was done on the STM32F4 and STM32H7.
### On which OS does this issue occur?
[OS: Other]
### What is the version of your OS?
Latest
### NuttX Version
Master
### Issue Architecture
[Arch: arm]
### Issue Area
[Area: Kernel]
### Host information
N/A
### Verification
- [x] I have verified before submitting the report.
Contributor guide
Assessment
This issue has not been assessed yet.