YuriMuhin_ng I used your attached BCH_enco.c and found that it generates incorrect code for some data blocks.
is there any updated version of this file is available?
This file generated incorrect/different ECC for program_image as compare to ECC generated by kobs-ng utility for NAND.
Solved! Go to Solution.
The algorithm Yuri attached is one used on i.MX6 processors.
And the same BCH ECC is used on i.MX7 and i.MX8M processors as well.
Please make sure that you set right parameters for encoding algorithm.
Have a great day,
Victor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Additionally to doublecheck if it is right algorithm please create a technical case:
https://community.nxp.com/thread/381898
I will attach the file.
The algorithm Yuri attached is one used on i.MX6 processors.
And the same BCH ECC is used on i.MX7 and i.MX8M processors as well.
Please make sure that you set right parameters for encoding algorithm.
Have a great day,
Victor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------