esp_crc16_be not available in 4.0, what can I use instead?
Posted: Sun Oct 25, 2020 3:48 am
I am using platformio with IDF v4.0, and the appropriate arduino libraries as a component.
I am hacking and slashing away at the Blufi demo, and have finally gotten my phone to communicate with the esp. I did, however have to do this:
Obviously this will prevent the blufi flow from working, I did it to get around this error temporarily:
I did find one in rom/crc.h but this causes a whole bunch of weird problems when included. We can get into that if this is my only option.
I am hacking and slashing away at the Blufi demo, and have finally gotten my phone to communicate with the esp. I did, however have to do this:
Code: Select all
uint16_t blufi_crc_checksum(uint8_t iv8, uint8_t *data, int len)
{
/* This iv8 ignore, not used */
return 1; //esp_crc16_be(0, data, len);
}
From what I gather, esp_crc16_be is not available in IDF v4.0. What can I use instead? I think that this function uses the internal crypto hardware (???) so rolling my own crc function is not a nice solution.esp_crc.h: No such file or directory
I did find one in rom/crc.h but this causes a whole bunch of weird problems when included. We can get into that if this is my only option.