I've noticed the wrong comments in bl_main.c of the stellaris bootloader source.
#ifdef ENFORCE_CRC
if(ui32Retcode == CHECK_CRC_OK)
#else
if((ui32Retcode == CHECK_CRC_OK) ||
(ui32Retcode == CHECK_CRC_NO_LENGTH))
#endif
{
//
// The calculated CRC didn't match the expected
// value or the image didn't contain an embedded
// CRC.
//
g_ui8Status = COMMAND_RET_SUCCESS;
}
else
{
//
// The calculated CRC agreed with the embedded
// value.
//
g_ui8Status = COMMAND_RET_CRC_FAIL;
}
Best regards
Nicola Zaquini