2019-09-09 09:30 PM
I am trying to set up the CRC in an STM32L072 to process data from a 1-wire device.
In the CubeIDE (editing the .ioc file), if I leave the default values, it will generate an appropriate MX_CRC_Init(void) function.
But if I want to set my own polynomial via the UI, I cannot get the UI to accept any input for "CRC Generating Polynomial" and the generated MX_CRC_Init() function is empty.
Seems to be broken - or is there some format to the field that I am not following?
The 1-Wire polynomial is X^8+X^5+X^4+1. I think the input should be "X8+X5+X4+X0" but this is not being accepted.
Default Polynomial State: Disable
CRC Length: 8-bit
CRC Generating Polynomial: X8+X5+X4+X0
What is the correct input? Or is the tool broken?