CRC k60 example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CRC k60 example

1,258件の閲覧回数
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 返信

768件の閲覧回数
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;