Errors of the form "15: Target error from Commit Flash write" are typically reported when the debugger is attempting to write to the flash, and the verify fails.
The most common cause for this error is insufficient power being supplied to the target while programming the flash. Flash programming increases the power consumption of the MCU dramatically, and if your power supply is not up to it, the flash programming will fail.
A common cause of insufficient power is PC USB ports, which often do not supply the USB spec of 500mA. Try another USB port on the PC, using a powered USB hub, or preferably use an external power supply to provide the power instead.