You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/12/08 13:34:41 UTC
[GitHub] [incubator-nuttx] spiriou opened a new pull request #2495: Adb stm32f103
spiriou opened a new pull request #2495:
URL: https://github.com/apache/incubator-nuttx/pull/2495
## Summary
Add example config for Android Debug Bridge (ADB) running on stm32f103-minimum.
Require https://github.com/apache/incubator-nuttx-apps/pull/515 to work
This config might not work for some boards as flash size is > 64kB.
It is possible to reduce footprint by removing some features (UART, procfs ...)
```
$ size nuttx
text data bss dec hex filename
74263 134 2716 77113 12d39 nuttx
```
## Impact
## Testing
```
$ adb pull /proc/meminfo
/proc/meminfo: 1 file pulled. 0.0 MB/s (104 bytes in 0.042s)
```
```
$ cat meminfo
total used free largest
Umem: 16592 6016 10576 10576
```
```
$ adb shell
NuttShell (NSH) NuttX-10.0.0
nsh> hello
Hello, World!!
nsh> free
total used free largest
Umem: 16592 11168 5424 5312
nsh> ps
PID PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 FIFO Kthread N-- Ready 00000000 001000 000360 36.0% Idle Tas
1 100 FIFO Task --- Ready 00000000 001012 000720 71.1% init
2 100 FIFO Task --- Running 00000000 002028 000832 41.0% ADB shel
nsh> exit
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] spiriou commented on pull request #2495: stm32f103-minimum: add defconfig example for ADB
Posted by GitBox <gi...@apache.org>.
spiriou commented on pull request #2495:
URL: https://github.com/apache/incubator-nuttx/pull/2495#issuecomment-743762337
> Hi, @spiriou
>
> I'm trying to test this configuration without success.
>
> ```
> $ make distclean
> $ tools/configure.sh stm32f103-minimum:adb
> $ make
> $ # (flash to blue pill board)
> ```
>
> On host PC, dmesg reports the following:
>
> ```
> [17280.043036] usb 2-3: new full-speed USB device number 17 using xhci_hcd
> [17280.171063] usb 2-3: device descriptor read/64, error -71
> [17280.411066] usb 2-3: device descriptor read/64, error -71
> [17280.647000] usb 2-3: new full-speed USB device number 18 using xhci_hcd
> [17280.775028] usb 2-3: device descriptor read/64, error -71
> [17281.015025] usb 2-3: device descriptor read/64, error -71
> [17281.123069] usb usb2-port3: attempt power cycle
> ```
>
> So obviously, neither `lsusb` nor `adb devices` show anything.
> Is there anything else expected to make this work? Does it work for you on a blue pill board? Am I doing something wrong?
> Thanks!
Hi Diego, thanks for your feedback. This config enables the CONFIG_STM32_DFU config so it requires a bootloader and the image is not mapped to 0x8000000 as usual. Maybe this is the issue if you are flashing using JTAG. Can you share more information regarding the flashing method you use ? Can you disable STM32_DFU if you use JTAG ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #2495: stm32f103-minimum: add defconfig example for ADB
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #2495:
URL: https://github.com/apache/incubator-nuttx/pull/2495
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] diegoherranz commented on pull request #2495: stm32f103-minimum: add defconfig example for ADB
Posted by GitBox <gi...@apache.org>.
diegoherranz commented on pull request #2495:
URL: https://github.com/apache/incubator-nuttx/pull/2495#issuecomment-743790582
That was it. I didn't noticed it was using DFU. I've disabled that and modified the linker script to make flash 128K (which uses out of spec memory, but it's fine as long as it's not production use) and it's working. Thanks for your quick reply and for adding this!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] diegoherranz commented on pull request #2495: stm32f103-minimum: add defconfig example for ADB
Posted by GitBox <gi...@apache.org>.
diegoherranz commented on pull request #2495:
URL: https://github.com/apache/incubator-nuttx/pull/2495#issuecomment-743748427
Hi, @spiriou
I'm trying to test this configuration without success.
```
$ make distclean
$ tools/configure.sh stm32f103-minimum:adb
$ make
$ # (flash to blue pill board)
```
On host PC, dmesg reports the following:
```
[17280.043036] usb 2-3: new full-speed USB device number 17 using xhci_hcd
[17280.171063] usb 2-3: device descriptor read/64, error -71
[17280.411066] usb 2-3: device descriptor read/64, error -71
[17280.647000] usb 2-3: new full-speed USB device number 18 using xhci_hcd
[17280.775028] usb 2-3: device descriptor read/64, error -71
[17281.015025] usb 2-3: device descriptor read/64, error -71
[17281.123069] usb usb2-port3: attempt power cycle
```
So obviously, neither `lsusb` nor `adb devices` show anything.
Is there anything else expected to make this work? Does it work for you on a blue pill board? Am I doing something wrong?
Thanks!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org