Dear Skarkare,
The error code 510 means that the patch does not match the source file in the module, need to check whether the upgrade package is wrong.
Please follow up the DFOTA user guide document to check the DFOTA package, the path and the whole test process. Thanks!