USB fails to enumerate on nrf52840_pca10056 board


Steve Brown
 

All the USB samples and tests fail to enumerate.
git HEAD 77006e896

Output from the desc_sections test is below:

Nov 27 09:11:57 nm-ws kernel: [520538.130145] usb 7-2: USB disconnect, device number 65
Nov 27 09:12:00 nm-ws kernel: [520542.088211] usb 7-2: new full-speed USB device number 66 using ohci-pci
Nov 27 09:12:06 nm-ws kernel: [520547.360327] usb 7-2: device descriptor read/all, error -110
Nov 27 09:12:06 nm-ws kernel: [520547.516218] usb 7-2: new full-speed USB device number 67 using ohci-pci

And the relevant nrf console output:

D: ep 0, status 0
D: ** 0 **
D: bRequest 0x6, wIndex 0x0
D: REQ_GET_DESCRIPTOR


The Nordic usbd_cdc_acm_pca10056.hex works on the same board:

Nov 27 09:09:32 nm-ws kernel: [520393.141205] usb 7-2: USB disconnect, device number 64
Nov 27 09:09:32 nm-ws kernel: [520393.735742] usb 7-2: new full-speed USB device number 65 using ohci-pci
Nov 27 09:09:32 nm-ws kernel: [520393.938828] usb 7-2: New USB device found, idVendor=1915, idProduct=520f, bcdDevice= 1.00
Nov 27 09:09:32 nm-ws kernel: [520393.938834] usb 7-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 27 09:09:32 nm-ws kernel: [520393.938838] usb 7-2: Product: nRF52 USB CDC Demo
Nov 27 09:09:32 nm-ws kernel: [520393.938841] usb 7-2: Manufacturer: Nordic Semiconductor
Nov 27 09:09:32 nm-ws kernel: [520393.938843] usb 7-2: SerialNumber: 796cadf8f13bbb37
Nov 27 09:09:32 nm-ws kernel: [520393.940987] cdc_acm 7-2:1.0: ttyACM1: USB ACM device

Steve


Carles Cufi
 

Hi Steve,

Is this a regression? Have you tested this with an earlier Zephyr version/revision that worked?
We use this board routinely to test the USB stack and haven't run into this problem.

Can you please also share more details about the USB Host (Linux I assume) and the way you build the samples?

Thanks,

Carles

-----Original Message-----
From: devel@lists.zephyrproject.org <devel@lists.zephyrproject.org> On
Behalf Of Steve Brown via Lists.Zephyrproject.Org
Sent: 27 November 2019 17:37
To: devel@lists.zephyrproject.org
Cc: devel@lists.zephyrproject.org
Subject: [Zephyr-devel] USB fails to enumerate on nrf52840_pca10056
board

All the USB samples and tests fail to enumerate.
git HEAD 77006e896

Output from the desc_sections test is below:

Nov 27 09:11:57 nm-ws kernel: [520538.130145] usb 7-2: USB disconnect,
device number 65 Nov 27 09:12:00 nm-ws kernel: [520542.088211] usb 7-2:
new full-speed USB device number 66 using ohci-pci Nov 27 09:12:06 nm-ws
kernel: [520547.360327] usb 7-2: device descriptor read/all, error -110
Nov 27 09:12:06 nm-ws kernel: [520547.516218] usb 7-2: new full-speed
USB device number 67 using ohci-pci

And the relevant nrf console output:

D: ep 0, status 0
D: ** 0 **
D: bRequest 0x6, wIndex 0x0
D: REQ_GET_DESCRIPTOR


The Nordic usbd_cdc_acm_pca10056.hex works on the same board:

Nov 27 09:09:32 nm-ws kernel: [520393.141205] usb 7-2: USB disconnect,
device number 64 Nov 27 09:09:32 nm-ws kernel: [520393.735742] usb 7-2:
new full-speed USB device number 65 using ohci-pci Nov 27 09:09:32 nm-ws
kernel: [520393.938828] usb 7-2: New USB device found, idVendor=1915,
idProduct=520f, bcdDevice= 1.00 Nov 27 09:09:32 nm-ws kernel:
[520393.938834] usb 7-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=3 Nov 27 09:09:32 nm-ws kernel: [520393.938838] usb 7-2:
Product: nRF52 USB CDC Demo Nov 27 09:09:32 nm-ws kernel:
[520393.938841] usb 7-2: Manufacturer: Nordic Semiconductor Nov 27
09:09:32 nm-ws kernel: [520393.938843] usb 7-2: SerialNumber:
796cadf8f13bbb37 Nov 27 09:09:32 nm-ws kernel: [520393.940987] cdc_acm
7-2:1.0: ttyACM1: USB ACM device

Steve



Johann Fischer
 

Can not confirm, woks fine on the latest master and on 77006e896.

Johann

On Wed, 27 Nov 2019 16:50:02 +0000
"Cufi, Carles" <carles.cufi@nordicsemi.no> wrote:

Hi Steve,

Is this a regression? Have you tested this with an earlier Zephyr version/revision that worked?
We use this board routinely to test the USB stack and haven't run into this problem.

Can you please also share more details about the USB Host (Linux I assume) and the way you build the samples?

Thanks,

Carles

-----Original Message-----
From: devel@lists.zephyrproject.org <devel@lists.zephyrproject.org> On
Behalf Of Steve Brown via Lists.Zephyrproject.Org
Sent: 27 November 2019 17:37
To: devel@lists.zephyrproject.org
Cc: devel@lists.zephyrproject.org
Subject: [Zephyr-devel] USB fails to enumerate on nrf52840_pca10056
board

All the USB samples and tests fail to enumerate.
git HEAD 77006e896

Output from the desc_sections test is below:

Nov 27 09:11:57 nm-ws kernel: [520538.130145] usb 7-2: USB disconnect,
device number 65 Nov 27 09:12:00 nm-ws kernel: [520542.088211] usb 7-2:
new full-speed USB device number 66 using ohci-pci Nov 27 09:12:06 nm-ws
kernel: [520547.360327] usb 7-2: device descriptor read/all, error -110
Nov 27 09:12:06 nm-ws kernel: [520547.516218] usb 7-2: new full-speed
USB device number 67 using ohci-pci

And the relevant nrf console output:

D: ep 0, status 0
D: ** 0 **
D: bRequest 0x6, wIndex 0x0
D: REQ_GET_DESCRIPTOR


The Nordic usbd_cdc_acm_pca10056.hex works on the same board:

Nov 27 09:09:32 nm-ws kernel: [520393.141205] usb 7-2: USB disconnect,
device number 64 Nov 27 09:09:32 nm-ws kernel: [520393.735742] usb 7-2:
new full-speed USB device number 65 using ohci-pci Nov 27 09:09:32 nm-ws
kernel: [520393.938828] usb 7-2: New USB device found, idVendor=1915,
idProduct=520f, bcdDevice= 1.00 Nov 27 09:09:32 nm-ws kernel:
[520393.938834] usb 7-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=3 Nov 27 09:09:32 nm-ws kernel: [520393.938838] usb 7-2:
Product: nRF52 USB CDC Demo Nov 27 09:09:32 nm-ws kernel:
[520393.938841] usb 7-2: Manufacturer: Nordic Semiconductor Nov 27
09:09:32 nm-ws kernel: [520393.938843] usb 7-2: SerialNumber:
796cadf8f13bbb37 Nov 27 09:09:32 nm-ws kernel: [520393.940987] cdc_acm
7-2:1.0: ttyACM1: USB ACM device

Steve





Steve Brown
 

Hi Carles,

This is the first time I've tried the nrf usb so I have no "working
version" to compare.

West version: v0.6.3
zephyr-sdk-0.10.3

The desc_section test was build with:
west build -b nrf52840_pca10056
west flash

The host is Ubuntu 19.10 on a x86_64.
Linux nm-ws 5.3.0-24-generic #26-Ubuntu SMP Thu Nov 14 01:33:18 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

I get the same result with a Raspberry Pi 3B+ as the host, also 19.10.
Linux ubuntu 5.3.0-1012-raspi2 #14-Ubuntu SMP Mon Nov 11 10:06:55 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux

The prj.conf file is unchanged. Does it need to be modified for this
board?

Other samples run fine. I've tested the onoff-app and hci_uart and they
perform as expected. The first USB sample I tried was hci_usb. When it
failed to enumerate, I tried the other samples and tests. They failed
too. All were build as above.

Thanks for the quick reply,

Steve

On Wed, 2019-11-27 at 16:50 +0000, Cufi, Carles wrote:
Hi Steve,

Is this a regression? Have you tested this with an earlier Zephyr
version/revision that worked?
We use this board routinely to test the USB stack and haven't run
into this problem.

Can you please also share more details about the USB Host (Linux I
assume) and the way you build the samples?

Thanks,

Carles

-----Original Message-----
From: devel@lists.zephyrproject.org <devel@lists.zephyrproject.org>
On
Behalf Of Steve Brown via Lists.Zephyrproject.Org
Sent: 27 November 2019 17:37
To: devel@lists.zephyrproject.org
Cc: devel@lists.zephyrproject.org
Subject: [Zephyr-devel] USB fails to enumerate on nrf52840_pca10056
board

All the USB samples and tests fail to enumerate.
git HEAD 77006e896

Output from the desc_sections test is below:

Nov 27 09:11:57 nm-ws kernel: [520538.130145] usb 7-2: USB
disconnect,
device number 65 Nov 27 09:12:00 nm-ws kernel: [520542.088211] usb
7-2:
new full-speed USB device number 66 using ohci-pci Nov 27 09:12:06
nm-ws
kernel: [520547.360327] usb 7-2: device descriptor read/all, error
-110
Nov 27 09:12:06 nm-ws kernel: [520547.516218] usb 7-2: new full-
speed
USB device number 67 using ohci-pci

And the relevant nrf console output:

D: ep 0, status 0
D: ** 0 **
D: bRequest 0x6, wIndex 0x0
D: REQ_GET_DESCRIPTOR


The Nordic usbd_cdc_acm_pca10056.hex works on the same board:

Nov 27 09:09:32 nm-ws kernel: [520393.141205] usb 7-2: USB
disconnect,
device number 64 Nov 27 09:09:32 nm-ws kernel: [520393.735742] usb
7-2:
new full-speed USB device number 65 using ohci-pci Nov 27 09:09:32
nm-ws
kernel: [520393.938828] usb 7-2: New USB device found,
idVendor=1915,
idProduct=520f, bcdDevice= 1.00 Nov 27 09:09:32 nm-ws kernel:
[520393.938834] usb 7-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=3 Nov 27 09:09:32 nm-ws kernel: [520393.938838] usb 7-
2:
Product: nRF52 USB CDC Demo Nov 27 09:09:32 nm-ws kernel:
[520393.938841] usb 7-2: Manufacturer: Nordic Semiconductor Nov 27
09:09:32 nm-ws kernel: [520393.938843] usb 7-2: SerialNumber:
796cadf8f13bbb37 Nov 27 09:09:32 nm-ws kernel: [520393.940987]
cdc_acm
7-2:1.0: ttyACM1: USB ACM device

Steve




Steve Brown
 

Hi Johann,

Could you email me a zephyr.hex of a USB app that enumerates?

With it I can eliminate my nrf52 boards as the problem.

Thanks,

Steve

On Wed, 2019-11-27 at 17:57 +0100, Johann Fischer wrote:
Can not confirm, woks fine on the latest master and on 77006e896.

Johann

On Wed, 27 Nov 2019 16:50:02 +0000
"Cufi, Carles" <carles.cufi@nordicsemi.no> wrote:

Hi Steve,

Is this a regression? Have you tested this with an earlier Zephyr
version/revision that worked?
We use this board routinely to test the USB stack and haven't run
into this problem.

Can you please also share more details about the USB Host (Linux I
assume) and the way you build the samples?

Thanks,

Carles

-----Original Message-----
From: devel@lists.zephyrproject.org <
devel@lists.zephyrproject.org> On
Behalf Of Steve Brown via Lists.Zephyrproject.Org
Sent: 27 November 2019 17:37
To: devel@lists.zephyrproject.org
Cc: devel@lists.zephyrproject.org
Subject: [Zephyr-devel] USB fails to enumerate on
nrf52840_pca10056
board

All the USB samples and tests fail to enumerate.
git HEAD 77006e896

Output from the desc_sections test is below:

Nov 27 09:11:57 nm-ws kernel: [520538.130145] usb 7-2: USB
disconnect,
device number 65 Nov 27 09:12:00 nm-ws kernel: [520542.088211]
usb 7-2:
new full-speed USB device number 66 using ohci-pci Nov 27
09:12:06 nm-ws
kernel: [520547.360327] usb 7-2: device descriptor read/all,
error -110
Nov 27 09:12:06 nm-ws kernel: [520547.516218] usb 7-2: new full-
speed
USB device number 67 using ohci-pci

And the relevant nrf console output:

D: ep 0, status 0
D: ** 0 **
D: bRequest 0x6, wIndex 0x0
D: REQ_GET_DESCRIPTOR


The Nordic usbd_cdc_acm_pca10056.hex works on the same board:

Nov 27 09:09:32 nm-ws kernel: [520393.141205] usb 7-2: USB
disconnect,
device number 64 Nov 27 09:09:32 nm-ws kernel: [520393.735742]
usb 7-2:
new full-speed USB device number 65 using ohci-pci Nov 27
09:09:32 nm-ws
kernel: [520393.938828] usb 7-2: New USB device found,
idVendor=1915,
idProduct=520f, bcdDevice= 1.00 Nov 27 09:09:32 nm-ws kernel:
[520393.938834] usb 7-2: New USB device strings: Mfr=1,
Product=2,
SerialNumber=3 Nov 27 09:09:32 nm-ws kernel: [520393.938838] usb
7-2:
Product: nRF52 USB CDC Demo Nov 27 09:09:32 nm-ws kernel:
[520393.938841] usb 7-2: Manufacturer: Nordic Semiconductor Nov
27
09:09:32 nm-ws kernel: [520393.938843] usb 7-2: SerialNumber:
796cadf8f13bbb37 Nov 27 09:09:32 nm-ws kernel: [520393.940987]
cdc_acm
7-2:1.0: ttyACM1: USB ACM device

Steve





Obalski, Emil <Emil.Obalski@...>
 

Hello,

I've tested it on 77006e896 with nRF52840_pca10056 board:
- samples/subsys/usb/cdc_acm
- tests/subsys/usb/desc_sections

Both works fine for me.
Here are hex files, please verify if both works with Your board.

Just in case You do not know how to falsh:
nrfjprog --program <hex_file>.hex --sectorerase --reset

Regards,
Emil

-----Original Message-----
From: Steve Brown <sbrown@ewol.com>
Sent: środa, 27 listopada 2019 20:56
To: Johann Fischer <johann_fischer@posteo.de>; Cufi, Carles <Carles.Cufi@nordicsemi.no>
Cc: devel@lists.zephyrproject.org; Obalski, Emil <Emil.Obalski@nordicsemi.no>; 'Johann Fischer' <j.fischer@phytec.de>; 'Emeltchenko, Andrei' <andrei.emeltchenko@intel.com>
Subject: Re: [Zephyr-devel] USB fails to enumerate on nrf52840_pca10056 board

Hi Johann,

Could you email me a zephyr.hex of a USB app that enumerates?

With it I can eliminate my nrf52 boards as the problem.

Thanks,

Steve

On Wed, 2019-11-27 at 17:57 +0100, Johann Fischer wrote:
Can not confirm, woks fine on the latest master and on 77006e896.

Johann

On Wed, 27 Nov 2019 16:50:02 +0000
"Cufi, Carles" <carles.cufi@nordicsemi.no> wrote:

Hi Steve,

Is this a regression? Have you tested this with an earlier Zephyr
version/revision that worked?
We use this board routinely to test the USB stack and haven't run
into this problem.

Can you please also share more details about the USB Host (Linux I
assume) and the way you build the samples?

Thanks,

Carles

-----Original Message-----
From: devel@lists.zephyrproject.org <
devel@lists.zephyrproject.org> On Behalf Of Steve Brown via
Lists.Zephyrproject.Org
Sent: 27 November 2019 17:37
To: devel@lists.zephyrproject.org
Cc: devel@lists.zephyrproject.org
Subject: [Zephyr-devel] USB fails to enumerate on
nrf52840_pca10056
board

All the USB samples and tests fail to enumerate.
git HEAD 77006e896

Output from the desc_sections test is below:

Nov 27 09:11:57 nm-ws kernel: [520538.130145] usb 7-2: USB
disconnect, device number 65 Nov 27 09:12:00 nm-ws kernel:
[520542.088211] usb 7-2:
new full-speed USB device number 66 using ohci-pci Nov 27
09:12:06 nm-ws
kernel: [520547.360327] usb 7-2: device descriptor read/all, error
-110 Nov 27 09:12:06 nm-ws kernel: [520547.516218] usb 7-2: new
full- speed USB device number 67 using ohci-pci

And the relevant nrf console output:

D: ep 0, status 0
D: ** 0 **
D: bRequest 0x6, wIndex 0x0
D: REQ_GET_DESCRIPTOR


The Nordic usbd_cdc_acm_pca10056.hex works on the same board:

Nov 27 09:09:32 nm-ws kernel: [520393.141205] usb 7-2: USB
disconnect, device number 64 Nov 27 09:09:32 nm-ws kernel:
[520393.735742] usb 7-2:
new full-speed USB device number 65 using ohci-pci Nov 27
09:09:32 nm-ws
kernel: [520393.938828] usb 7-2: New USB device found,
idVendor=1915, idProduct=520f, bcdDevice= 1.00 Nov 27 09:09:32
nm-ws kernel:
[520393.938834] usb 7-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=3 Nov 27 09:09:32 nm-ws kernel: [520393.938838] usb
7-2:
Product: nRF52 USB CDC Demo Nov 27 09:09:32 nm-ws kernel:
[520393.938841] usb 7-2: Manufacturer: Nordic Semiconductor Nov
27
09:09:32 nm-ws kernel: [520393.938843] usb 7-2: SerialNumber:
796cadf8f13bbb37 Nov 27 09:09:32 nm-ws kernel: [520393.940987]
cdc_acm
7-2:1.0: ttyACM1: USB ACM device

Steve





Steve Brown
 

Hi Emil,

Thanks for the files.

Neither work on my boards.

I suspect my silicon may be too old. I've had the boards for a couple
of years.

The build/date codes on both boards are: QIAAAA/1716AK.
The labels on the jlink chips are:
V0.9.2 2017.34 683955518
V0.9.2 2017.33 683137769

Some of the Nordic examples log errata 104 & 154 as enabled.

Further, the usbd_cdc_acm example from the
14.2.0 SDK works, while the one from 16.0.0 fails to enumerate.

I think I'm wasting everybody's time and should just get a couple of
current boards.

Steve

On Thu, 2019-11-28 at 09:52 +0000, Obalski, Emil wrote:
Hello,

I've tested it on 77006e896 with nRF52840_pca10056 board:
- samples/subsys/usb/cdc_acm
- tests/subsys/usb/desc_sections

Both works fine for me.
Here are hex files, please verify if both works with Your board.

Just in case You do not know how to falsh:
nrfjprog --program <hex_file>.hex --sectorerase --reset

Regards,
Emil

-----Original Message-----
From: Steve Brown <sbrown@ewol.com>
Sent: środa, 27 listopada 2019 20:56
To: Johann Fischer <johann_fischer@posteo.de>; Cufi, Carles <
Carles.Cufi@nordicsemi.no>
Cc: devel@lists.zephyrproject.org; Obalski, Emil <
Emil.Obalski@nordicsemi.no>; 'Johann Fischer' <j.fischer@phytec.de>;
'Emeltchenko, Andrei' <andrei.emeltchenko@intel.com>
Subject: Re: [Zephyr-devel] USB fails to enumerate on
nrf52840_pca10056 board

Hi Johann,

Could you email me a zephyr.hex of a USB app that enumerates?

With it I can eliminate my nrf52 boards as the problem.

Thanks,

Steve

On Wed, 2019-11-27 at 17:57 +0100, Johann Fischer wrote:
Can not confirm, woks fine on the latest master and on 77006e896.

Johann

On Wed, 27 Nov 2019 16:50:02 +0000
"Cufi, Carles" <carles.cufi@nordicsemi.no> wrote:

Hi Steve,

Is this a regression? Have you tested this with an earlier
Zephyr
version/revision that worked?
We use this board routinely to test the USB stack and haven't
run
into this problem.

Can you please also share more details about the USB Host (Linux
I
assume) and the way you build the samples?

Thanks,

Carles

-----Original Message-----
From: devel@lists.zephyrproject.org <
devel@lists.zephyrproject.org> On Behalf Of Steve Brown via
Lists.Zephyrproject.Org
Sent: 27 November 2019 17:37
To: devel@lists.zephyrproject.org
Cc: devel@lists.zephyrproject.org
Subject: [Zephyr-devel] USB fails to enumerate on
nrf52840_pca10056
board

All the USB samples and tests fail to enumerate.
git HEAD 77006e896

Output from the desc_sections test is below:

Nov 27 09:11:57 nm-ws kernel: [520538.130145] usb 7-2: USB
disconnect, device number 65 Nov 27 09:12:00 nm-ws kernel:
[520542.088211] usb 7-2:
new full-speed USB device number 66 using ohci-pci Nov 27
09:12:06 nm-ws
kernel: [520547.360327] usb 7-2: device descriptor read/all,
error
-110 Nov 27 09:12:06 nm-ws kernel: [520547.516218] usb 7-2:
new
full- speed USB device number 67 using ohci-pci

And the relevant nrf console output:

D: ep 0, status 0
D: ** 0 **
D: bRequest 0x6, wIndex 0x0
D: REQ_GET_DESCRIPTOR


The Nordic usbd_cdc_acm_pca10056.hex works on the same board:

Nov 27 09:09:32 nm-ws kernel: [520393.141205] usb 7-2: USB
disconnect, device number 64 Nov 27 09:09:32 nm-ws kernel:
[520393.735742] usb 7-2:
new full-speed USB device number 65 using ohci-pci Nov 27
09:09:32 nm-ws
kernel: [520393.938828] usb 7-2: New USB device found,
idVendor=1915, idProduct=520f, bcdDevice= 1.00 Nov 27 09:09:32
nm-ws kernel:
[520393.938834] usb 7-2: New USB device strings: Mfr=1,
Product=2,
SerialNumber=3 Nov 27 09:09:32 nm-ws kernel: [520393.938838]
usb
7-2:
Product: nRF52 USB CDC Demo Nov 27 09:09:32 nm-ws kernel:
[520393.938841] usb 7-2: Manufacturer: Nordic Semiconductor Nov
27
09:09:32 nm-ws kernel: [520393.938843] usb 7-2: SerialNumber:
796cadf8f13bbb37 Nov 27 09:09:32 nm-ws kernel: [520393.940987]
cdc_acm
7-2:1.0: ttyACM1: USB ACM device

Steve




lairdjm
 

I suspect my silicon may be too old. I've had the boards for a couple
of years.

The build/date codes on both boards are: QIAAAA/1716AK.
The labels on the jlink chips are:
V0.9.2 2017.34 683955518
V0.9.2 2017.33 683137769

Some of the Nordic examples log errata 104 & 154 as enabled.

Further, the usbd_cdc_acm example from the
14.2.0 SDK works, while the one from 16.0.0 fails to enumerate.
Hi Steve,
There are various issues with your silicon versions:
1) SDK 14.2 was the last version to support engineering A silicon as per https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcomp_matrix_nrf52840%2FCOMP%2Fnrf52840%2FnRF52840_ic_rev_sdk_sd_comp_matrix.html
2) high voltage operation does not work on engineering C silicon or older, errata 140
3) multiple USB erratas, 162, 171, 180, 200, which prevent USB from working

I think I'm wasting everybody's time and should just get a couple of
current boards.
That would be a good idea.
Thanks,
Jamie