CRC k60 example

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CRC k60 example

1,419 次查看
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 项奖励
回复
1 回复

929 次查看
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;