Skip to content

USB Bulk Transfer is inconsistent with other platforms (IDFGH-16833) #17907

@Joseph-Melberg

Description

@Joseph-Melberg

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.5.1

Espressif SoC revision.

ESP32-P4

Operating System used.

Linux

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

None

Development Kit.

ESP32-P4-Nano

Power Supply used.

USB

What is the expected behavior?

buff output looks like 7d808280817d7e7f7e7d817d857e7f7e81827e827e80817f7d837f7e817f807d828181817d857d7f7b7c7c81827d81807c83

What is the actual behavior?

buffer output looks like 7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F7F

Steps to reproduce.

Take this code here

plug in your rtlsdr dongle RTLSDR_TUNER_R820T.

Run the code.
The beginning of each buffer prints out and is mostly 7F, instead of something like 7d808280817d7e7f7e7d817d857e7f7e81827e827e80817f7d837f7e817f807d828181817d857d7f7b7c7c81827d81807c83

Debug Logs.

On my latop, the data buffer that is given to the callback looks like this

7d808280817d7e7f7e7d817d857e7f7e81827e827e80817f7d837f7e817f807d828181817d857d7f7b7c7c81827d81807c83

and has length 262144

On the chip, it looks like 

7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f and has length of 131584

Diagnostic report archive.

diag-9b82d040-79cd-43b6-8840-eadf77274a1b.zip
idf-diag-ab87b360-2933-4360-b4cf-fac7b872cbe3.zip

More Information.

https://gitea.osmocom.org/argilo/rtl-sdr/ for reference, in case this is an issue with how I translated the code

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions