The board is in serial download mode and is not configured with secure boot.
The USB OTG cable is connected, but I'm not sure what you mean by "both USB cables connected (USB data and debug).
We are also seeing the USB error in U-Boot when trying to load U-Boot via USB:
U-Boot SPL 2023.04-04924-g7341fbb267 (May 01 2025 - 16:26:33 -0400)
Trying to boot from USB SDP
g_dnl_register: failed!, error: -22
SDP dnl register failed: -22
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
We encountered this error after switching the processor from the iMX6DL to the iMX6Q on our custom board. The board with the iMX6DL passed the memory test successfully.
Is there any difference in the USB hardware configuration (USB OTG) between the iMX6DL and iMX6Q?