apache / apache/nuttx

[BUG] Recent modification broke raspberry pi pico nsh

Open
#15,162 6 comments 2 reactions 0 assignees View on GitHub
Arch: arm Area: Board support OS: BSD OS: Linux OS: Mac OS: Other OS: Windows 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

Yashvi Shah reported me that she wasn't getting the nsh working on RaspberryPi Pico, then I tested here and in fact some recent modification broke the NSH.

@lupyuen is it possible to add RaspberryPi Pico to the automated test as well?

$ git clone -b 2.0.0 https://github.com/raspberrypi/pico-sdk.git

$ export PICO_SDK_PATH=/home/alan/pico-sdk

$ cd nuttxspace/nuttx

$ make distclean

You can use this script to find the board name after configure.sh just typing the inicial name of the board and pressing TAB

$ . tools/configure_completion.bash

$ ./tools/configure.sh raspberrypi-pico:nsh

$ make -j
flash: 144 KB 2 MB 7.03%
sram: 8224 B 264 KB 3.04%
Generating: nuttx.uf2
Done

Copy nuttx.uf2 to the virtual disk of raspberrypi pico and use a USB/Serial connected to GP0, GP1 and GND and reset the board, you will see the nsh is not accepting text and there is trash after the nuttx entry message (see attached image)
![rp_pico_broken](https://github.com/user-attachments/assets/6ba93efa-db28-4ce4-9cc6-c6cef80ca071)

### On which OS does this issue occur?

[OS: BSD], [OS: Linux], [OS: Mac], [OS: Windows], [OS: Other]

### What is the version of your OS?

24.04

### NuttX Version

12.7 mainline

### Issue Architecture

[Arch: arm]

### Issue Area

[Area: Board support]

### 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.