Hello,
What the Polynome of CC2340R5-Q1 ROM Serial Bootloader used? we are developing the programming for this chip using BSL, but can't find the CRC32 polynome for BLDR_CMD_CRC32 command.
Best regards,
Alan
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
What the Polynome of CC2340R5-Q1 ROM Serial Bootloader used? we are developing the programming for this chip using BSL, but can't find the CRC32 polynome for BLDR_CMD_CRC32 command.
Best regards,
Alan
Hello,
The polynome used for the BLDR_CMD_CRC32 is seen below:
The polynomial is used to pre generate the CRC32 value in a look up table. Please refer to the Fast Computation section of the CRC32 readme. Additionally, I have linked the CRC32 readme below for further reading.
Let me know if this helps and if you have any more questions!
Thanks,
Isaac
Hello,
Thank you for your help!
Another question, what is the Initial CRC value, is 0xFFFFFFFF or 0x00000000? Input dtat need to be reversed? output CRC need to be reversed or XOR to 0xFFFFFFFF. Is byte or word(16-Bits) calculate input?
Thanks!
Alan
Hello,
What is the Initial CRC value, is 0xFFFFFFFF or 0x00000000?
The initial CRC value is 0xFFFFFFFF.
Input data need to be reversed? output CRC need to be reversed or XOR to 0xFFFFFFFF.
Inverting the input data is not necessary, but if the input data is inverted, the output data must also be inverted. For an example of this, please refer to the Worked Example and Inversion section of the Readme. Additionally, the computation section provides another example of the computation.
Is byte or word(16-Bits) calculate input?
The XOR operations for CRC32 calculate 33 bits per XOR operation. This can be seen in the worked example link above. The input data to the CRC can be a variety of different lengths, depending on the data size. If this response didn't answer your question, could you please describe the question in more detail.
Let me know if this answered your questions!
Thanks,
Isaac
Hello, Isaac,
Thanks for your help!
I have solved my problem, and the CRC32 we calculated has matched with chip's internal calculated.
Thanks!
Alan