This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Usb Tx succes event missed in Nordic's SDK stack

Hi, Nordic! I have used NRF52840 and SDK 13.0.0. From Errata:

3.18 [104] USBD: EPDATA event is not always generated

Workaround

Use the USB stack provided in Nordic's SDK.

We have used USB stack from latest SDK. But event "Tx success" is missed sometimes. In host side the last packet present.

What can You tell about this problem? Is this will be present in serial chips?

Update: In attachment a modified example from SDK.

  1. Open serial port in terminal.

  2. Push button 1 for begin tx transfer.

  3. Send some data from host to device.(I have pressed any key in Putty by minute)

  4. When tx transers stopped press again button 1 and look in log.(TxSuccess = TxRequested - 1; in host we can see all TxRequested transfers)

My results:tx missed event

Project:usbd_cdc_acm.7z

Update 2: Rx transfer event can also missed.

  • I have tested the program with the newest netlist (internal pre production). After the transmission from the device was started I was able to send 50 MB of data without hang, while in the sampled chip it hangs during sending 300 KB.

    I believe it was proven that the problem would not be present in final production production chip. I would leave internal task for that problem but it would have low priority and would be solved if there would be time for that.

Related