Writing ECC information to NAND Flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Writing ECC information to NAND Flash

跳至解决方案
3,306 次查看
romanschnarwile
Contributor III

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.

标签 (2)
标记 (5)
0 项奖励
回复
1 解答
2,650 次查看
jiri-b36968
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,650 次查看
rendy
NXP Employee
NXP Employee
0 项奖励
回复
2,650 次查看
jiri-b36968
NXP Employee
NXP Employee

Hi Roman,

The Vybrid NFC module is different that the one on i.MX, but not sure about algorithm. NCF contain built-in ECC logic. NFC performs ECC calculation on-the-fly. No source code for ECC calculation is needed. We have examples codes of usage ECC in MQX, but they use also build-in ECC logic.

/Jiri

0 项奖励
回复
2,650 次查看
romanschnarwile
Contributor III

Hi Jiri,

Thanks for your answer. I know about the built-in ECC in Vybrid. However, if we want to use JTAG Boundary Scan to write to flash, we also need to write the ECC correctly, otherwise the Vybrid can''t load the bootloader, because the ECC information is missing.

I know, there might be some other workarounds. But since we already have our process for other existing products which follows this path, it would be easy to also use the same process for our vybrid products. So the only thing missing is the code which generates the ECC as used by the vybrid NFC. If you don't have source code for it, it would be helpful to at least know the algorithm which is used. I know it's BCH, but do you have some more information about it?

Thanks.

0 项奖励
回复
2,650 次查看
jiri-b36968
NXP Employee
NXP Employee

Hi Roman,

ECC codes are generated and written into spare area on-the-fly, so ECC information will not be missing. Anyway I will try to get the information which code from BCH class is used from architect/designer. Stand-by.

/Jiri

2,651 次查看
jiri-b36968
NXP Employee
NXP Employee

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

0 项奖励
回复
2,650 次查看
romanschnarwile
Contributor III

OK, thanks. We will give it a try. You can consider this ticket as closed.

0 项奖励
回复