cancel
Showing results for 
Search instead for 
Did you mean: 

Setup CRC via STM32CubeIDE 1.02

Andrew Larkin
Associate III

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?

0 REPLIES 0