Other Parts Discussed in Thread: DRA821
I have tried to load u-boot via usb to flash ospi and mmc.
Using the J721EVM it works fine. Looking at the first step the command
dfu-util -v -R -a bootloader -D tiboot3.bin
is performed with success
libusb version 1.0.24 (11656)Warning: Invalid DFU suffix signatureA valid DFU suffix will be required in a future dfu-util releaseOpening DFU capable USB device...Device ID 0451:6164Device DFU version 0110DFU attributes: (0x07) bitCanDnload bitCanUpload bitManifestationTolerantDetach timeout 65535 msClaiming USB DFU Interface...Setting Alternate Interface #0 ...Determining device status...DFU state(2) = dfuIDLE, status(0) = No error condition is presentDFU mode device DFU version 0110Device returned transfer size 512Copying data from PC to DFU deviceDownload [=========================] 100% 527357 bytesDownload done.Sent a total of 527357 bytesDFU state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is presentDFU state(2) = dfuIDLE, status(0) = No error condition is presentDone!can't detachResetting USB to switch back to Run-Time mode
but when I try to perform the same operation on a custom board I see:
libusb version 1.0.24 (11656)Warning: Invalid DFU suffix signatureA valid DFU suffix will be required in a future dfu-util releaseOpening DFU capable USB device...Device ID 0451:6164Device DFU version 0110DFU attributes: (0x07) bitCanDnload bitCanUpload bitManifestationTolerantDetach timeout 65535 msClaiming USB DFU Interface...Setting Alternate Interface #0 ...Determining device status...DFU state(2) = dfuIDLE, status(0) = No error condition is presentDFU mode device DFU version 0110Device returned transfer size 512Copying data from PC to DFU deviceDownload [ ] 0% 0 bytesError during download (LIBUSB_ERROR_PIPE)
Enumeration and dfu-util -l commands works always fine:
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.Copyright 2010-2021 Tormod Volden and Stefan SchmidtThis program is Free Software and has ABSOLUTELY NO WARRANTYPlease report bugs to sourceforge.net/.../
Found DFU: [0451:6164] ver=0200, devnum=1, cfg=1, intf=0, path="2-1", alt=1, name="SocId", serial="01.00.00.00"Found DFU: [0451:6164] ver=0200, devnum=1, cfg=1, intf=0, path="2-1", alt=0, name="bootloader", serial="01.00.00.00"
The main difference is that on the custom board I use a standard USB 2.0 connector and only USB0 DP (AA2) USB0 DM(AA3) USB0_VBUS(Y2) processor pins are connected to the PC,
and the Demo board uses a Usb 3.1 TYPEC connector. Maybe this is the cause of the failure? Is there anything else I can check on the custom board?
Regards
Roberto