[Moto Z2 Force  Guides, News, & Discussion] cm0002:
wI was trying to flash DU, something went wrong and its now softbricked, it boots to the bootloader with the message "Your device didn't start up successfully". I went and did the preparation and flashfile, but when running the flashfile i end up with a bunch of "FAILED (command write failed (no error)) and between each it will appear to be stuck in a bootloader loop where the screen will go off and come back to the bootloader screen, when its off <waiting for device> appears

max-sparse-size: 268435456
finished. total time: 0.000s
...
OKAY [ 0.000s]
finished. total time: 0.000s
target reported max download size of 536870912 bytes
sending 'partition' (206 KB)...
OKAY [ 0.000s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Committing 'gpt.default.xml'
(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'
(bootloader) - flashing 'gpt_main1.bin' to 'partition:1'
(bootloader) - flashing 'gpt_main2.bin' to 'partition:2'
(bootloader) - flashing 'gpt_main3.bin' to 'partition:3'
(bootloader) - flashing 'gpt_main4.bin' to 'partition:4'
(bootloader) - flashing 'gpt_main5.bin' to 'partition:5'
OKAY [ 0.116s]
finished. total time: 0.116s
target reported max download size of 536870912 bytes
sending 'bootloader' (9884 KB)...
OKAY [ 0.231s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Committing 'bootloader.default.xml'
(bootloader) - flashing 'xbl.elf' to 'xbl'
(bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'
(bootloader) - flashing 'cmnlib64.mbn' to 'cmnlib64'
(bootloader) - flashing 'abl.elf' to 'abl'
(bootloader) - flashing 'keymaster.mbn' to 'keymaster'
(bootloader) - flashing 'rpm.mbn' to 'rpm'
(bootloader) - flashing 'pmic.elf' to 'pmic'
(bootloader) - flashing 'hyp.mbn' to 'hyp'
(bootloader) - flashing 'tz.mbn' to 'tz'
(bootloader) - flashing 'devcfg.mbn' to 'devcfg'
(bootloader) - flashing 'storsec.mbn' to 'storsec'
(bootloader) - flashing 'prov64.mbn' to 'prov'
OKAY [ 0.122s]
finished. total time: 0.353s
error: Failed to identify current slot
target didn't report max-download-size
sending 'fsg' (5600 KB)...
FAILED (command write failed (No error))
finished. total time: -0.000s
< waiting for any device >
error: Failed to identify current slot
target didn't report max-download-size
sending 'dsp' (16384 KB)...
FAILED (command write failed (No error))
finished. total time: 0.007s
< waiting for any device >
target didn't report max-download-size
sending 'logo_yes' (3151 KB)...
FAILED (command write failed (No such file or directory))
finished. total time: 0.002s
< waiting for any device >
error: Failed to identify current slot
target didn't report max-download-size
sending 'system' (516200 KB)...
FAILED (command write failed (No error))
finished. total time: 0.012s
< waiting for any device >
target didn't report max-download-size
sending 'system_yes' (494941 KB)...
FAILED (command write failed (No such file or directory))
finished. total time: 0.003s
< waiting for any device >
error: Failed to identify current slot
target didn't report max-download-size
sending 'system' (522895 KB)...
FAILED (command write failed (No error))
finished. total time: 0.003s
< waiting for any device >
error: Failed to identify current slot
target didn't report max-download-size
sending 'system' (420591 KB)...
FAILED (command write failed (No error))
finished. total time: 0.003s
< waiting for any device >
target reported max download size of 536870912 bytes
sending 'system_b' (515183 KB)...
OKAY [ 10.988s]
writing 'system_b'...
OKAY [ 2.954s]
finished. total time: 13.942s
target reported max download size of 536870912 bytes
sending 'system_b' (307224 KB)...
OKAY [ 6.523s]
writing 'system_b'...
OKAY [ 1.699s]
finished. total time: 8.222s
error: Failed to identify current slot
erasing 'modemst1'...
FAILED (command write failed (No error))
finished. total time: 0.002s
< waiting for any device >
erasing 'modemst2'...
OKAY [ 0.002s]
finished. total time: 0.003s
erasing 'carrier'...
OKAY [ 0.002s]
finished. total time: 0.002s
erasing 'cache'...
OKAY [ 0.002s]
finished. total time: 0.003s
erasing 'userdata'...
OKAY [ 0.012s]
finished. total time: 0.013s
erasing 'ddr'...
OKAY [ 0.001s]
finished. total time: 0.002s
error: Failed to identify current slot
target didn't report max-download-size
sending 'bluetooth' (4496 KB)...
FAILED (command write failed (No error))
finished. total time: 0.005s
< waiting for any device >
...
OKAY [ 0.000s]
finished. total time: 0.000s
-------------------------------------------------------------------------
please scroll up and check your flash for any errors
-------------------------------------------------------------------------
Press any key to continue . . .