We try to program our Vybrid VF50 and VF61 products directly thought JTAG. We plan to write the bootloader directly to NAND flash through JTAG boundary scan. This works in general. We would like to write the bootloader directly by using the correct ECC settings (ECC mode 6, 45bytes for 24 bit correction). Is there any source code which does the ECC calculation for a NAND page? I know its using BCH as an algorithm. Did anyone already test such an approach on Vybrid.

Could the source code of kobs-ng for iMX help? Does it use exactly the same ECC algorithm as on Vybrid?

Thanks.

Hi Roman,

Hope that this information helps you to implement the algorithm: The ECC in Vybird's NFC is BCH code based on GF(2^15).

/Jiri