I have the k60 quick start demo running and wanted to add a crc to the communications. I added
crc_error=CRC_Config(0x1021, 0, 0, 0, 0);
crc = CRC_Cal_16(seed, mSendBuffer, BSP_DSPI_TX_BUFFER_SIZE);
and was able to link and compile. However program execution never returns from CFC_Config and throws an unhandled execption. Any help?
I don't believe that CRC_Config function enables the clock for the CRC module. For K60, precede with:
SIM_SCGC6 |= SIM_SCGC6_CRC_MASK;