brandonlw / Psychson

Phison 2251-03 (2303) Custom Firmware & Existing Firmware Patches (BadUSB)
MIT License
4.12k stars 1.28k forks source link

DriveCom switching to boot mode causes exception #114

Closed theSoenke closed 9 years ago

theSoenke commented 9 years ago

When flashing the firmware i get an exception from DriveCom

This is the command i executed: tools\DriveCom.exe /drive=D /action=SendFirmware /burner=BN03V117M.BIN /firmware=firmware\bin\fw.bin

Action specified: SendFirmware Gathering information... Reported chip type: 2303 Reported chip ID: 98-3A-A8-92-76-57 Reported firmware version: 2.08.53 Mode: Firmware Switching to boot mode... FATAL: System.InvalidOperationException: DeviceIoControl failed: 0079 bei DriveCom.PhisonDevice._SendCommand(SafeFileHandle handle, Byte[] cmd, Byte[] data, Int32 bytesExpected) in ...\Psychson\DriveCom\DriveCom\PhisonDevice.cs:Zeile 365. bei DriveCom.PhisonDevice.SendCommand(Byte[] cmd, Byte[] data) in ...\Psychson\DriveCom\DriveCom\PhisonDevice.cs:Zeile 314. bei DriveCom.PhisonDevice.SendCommand(Byte[] cmd) in ...\Psychson\DriveCom\DriveCom\PhisonDevice.cs:Zeile 304. bei DriveCom.PhisonDevice.JumpToPRAM() in ...\Psychson\DriveCom\DriveCom\PhisonDevice.cs:Zeile 228. bei DriveCom.Startup._ExecuteImage(String fileName) in ...\Psychson\DriveCom\DriveCom\Startup.cs:Zeile 404. bei DriveCom.Startup._SendFirmware() in ...\Psychson\DriveCom\DriveCom\Startup.cs:Zeile 375. bei DriveCom.Startup.Main(String[] args) in ...\Psychson\DriveCom\DriveCom\Startup.cs:Zeile 114.

Any idea whats the problem?

theSoenke commented 9 years ago

Getting into boot mode seems to work. The LED is lightning stable when i execute

DriveCom.exe /drive=D /action=SetBootMode

But when i now execute

DriveCom.exe /drive=D /action=SendExecutable /burner=BN03V117M.BIN

This is the result:

Action specified: SendExecutable FATAL: System.InvalidOperationException: DeviceIoControl failed: 0079 bei DriveCom.PhisonDevice._SendCommand(SafeFileHandle handle, Byte[] cmd, Byte[] data, Int32 bytesExpected) in ...\Psychson\DriveCom\DriveCom\PhisonDevice.cs:Zeile 365. bei DriveCom.PhisonDevice.SendCommand(Byte[] cmd, Byte[] data) in ...\Psychson\DriveCom\DriveCom\PhisonDevice.cs:Zeile 314. bei DriveCom.PhisonDevice.SendCommand(Byte[] cmd) in ...\Psychson\DriveCom\DriveCom\PhisonDevice.cs:Zeile 304. bei DriveCom.PhisonDevice.JumpToPRAM() in ...\Psychson\DriveCom\DriveCom\PhisonDevice.cs:Zeile 228. bei DriveCom.Startup._ExecuteImage(String fileName) in ...\Psychson\DriveCom\DriveCom\Startup.cs:Zeile 404. bei DriveCom.Startup.Main(String[] args) in ...\Psychson\DriveCom\DriveCom\Startup.cs:Zeile 109.

theSoenke commented 9 years ago

Tried it again with the burner image BN03V04M.BIN and now it worked