Exclamation [Q] ODIN Error when flashing stock rom

Okay, so I've been searching for hours, and can't seem to find anything.

I recently installed cyanogen, and rooted, and want to remove it.

I downloaded the stock rom, odin, everything.


When I go to do the odin thing, I get an error:

<ID:0/005> NAND Write Start!!
<ID:0/005>
<ID:0/005> Complete(Write) operation failed.
<ID:0/005> Added!!
<OSM> All threads completed. (succeed 0 / failed 1)

Trying to flash Pit:

<ID:0/005> Set PIT file..
<ID:0/005> DO NOT TURN OFF TARGET!!
<ID:0/005>
<ID:0/005> Re-Partition operation failed.
<ID:0/005> Added!!
<OSM> All threads completed. (succeed 0 / failed 1)



I've tried everything. And don't know what else to do. Any help would be appreciated.