sm-n900 strange problem

i want to update to 5.0 if i write firmware only write 2% show write firmware failed and show firmware upgrade encountered an issue.please select recovery mode in kies & try again.
what can i solve this problem please help me team.
———————————————————————————–
To connect SM-N900 phone you have to perform the following steps:
1. Disconnect USB cable from phone.
2. Go to Menu->Settings->More->About Device.
3.Tap on "Build number" 7 times to enable developer options.
4. Go to Menu->Settings->More->Developer options.
5. Turn on "USB Debugging" option.
Selected firmware file: N900XXUDND1_N900OJVDND1
_KSA_Saudi_Arabia_Android_4.4.2.oct
Please put the phone into Download Mode and connect USB cable.
To put SM-N900 into Download Mode, You have to perform the
following steps:
1. Reconnect the battery.
2. Press and hold "Volume-" + "Home" + "Power ON" keys.
3. When phone turns on, press "Volume+" key.
Found phone on
Firmware write started.
Writing BOOTLOADER section…
BOOTLOADER section has been written successfully.
Writing BOOT section…
BOOT section has been written successfully.
Writing RECOVERY section…
RECOVERY section has been written successfully.
Writing SYSTEM section…
Writing Firmware Failed
Selected firmware file: n900ubuebof1_n900crcebof2_crc_androi_
5.0.oct
Please put the phone into Download Mode and connect USB cable.
To put SM-N900 into Download Mode, You have to perform the
following steps:
1. Reconnect the battery.
2. Press and hold "Volume-" + "Home" + "Power ON" keys.
3. When phone turns on, press "Volume+" key.
Found phone on
Firmware write started.
Writing BOOTLOADER section…
BOOTLOADER section has been written successfully.
Writing BOOT section…
BOOT section has been written successfully.
Writing RECOVERY section…
RECOVERY section has been written successfully.
Writing SYSTEM section…
Writing Firmware Failed