apache / apache/nuttx

[BUG] adb is not working on STM32F4Discovery board

Open
#15,595 11 comments 0 reactions 0 assignees View on GitHub
Arch: arm Area: Applications OS: Linux 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

$ ./tools/configure.sh stm32f4discovery:adb

$ make -j

$ sudo openocd -f interface/stlink.cfg -f target/stm32f4x.cfg -c init -c "reset halt" -c "flash write_image erase nuttx.bin 0x08000000"

$ adb devices
List of devices attached
1234 offline

The adb0 device files are present:

nsh> ls /dev/adb0/
/dev/adb0:
ep0
ep1
ep2

I don't know if adbd is running, but I think it is because there are many there are 3 Kthread and 1 Task:

nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED
0 0 0 FIFO Kthread - Ready 0000000000000000 0002032 0000460 22.6k
1 0 224 FIFO Kthread - Waiting Semaphore 0000000000000000 0001984 0000368 18.5c
2 0 100 FIFO Kthread - Waiting Semaphore 0000000000000000 0001984 0000264 13.30
3 3 100 FIFO Task - Running 0000000000000000 0003032 0001536 50.6n
nsh>

Note: there is not Documentation/ to adb on STM32F4Discovery

### On which OS does this issue occur?

[OS: Linux]

### What is the version of your OS?

Ubuntu 24.04

### NuttX Version

mainline: 2779989add104b8243b6d06bd187b1a9927983cd

### Issue Architecture

[Arch: arm]

### Issue Area

[Area: Applications]

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