Through community and engineering verification, the following triggers for Error 1042 have been identified:
Avoid charging cables; use a data-transfer cable. sp+flash+tool+error+1042+verified
Here’s a concise explanation and troubleshooting guide: Through community and engineering verification
Are you attempting to flash or a custom ROM/Recovery ? sp+flash+tool+error+1042+verified
the SP Flash Tool waited too long for a response from your device and eventually gave up