CRC k60 example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CRC k60 example

758 Views
barbercolman
Contributor III

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?

 

 

0 Kudos
1 Reply

268 Views
egoodii
Senior Contributor III

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;