I have to execute some lightweight error correction codes (ideally BCH) to compare and subsequently correct the mismatches between two binary arrays. I am working on the nrf52840 development kit and using contiki-ng as the operating system. I have to ask if it's possible to implement BCH ECC code, something similar to this, BCH Code in C. I have also found the emLib ECC - Bit Error Correction for Embedded Devices provided by segger, So my question is if I can use it easily. I am not a pro in embedded programming so looking for some easy code implementation suggestions.