Question:

What does the flash API error STATUS_FAIL_PRECONDITION mean?

Answer:

Precondition is the first step that occurs when erasing the flash.

Also refer to: http://processors.wiki.ti.com/index.php/Flash_101_for_C2000