Re: USB fails to enumerate on nrf52840_pca10056 board


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



Join devel@lists.zephyrproject.org to automatically receive all group messages.