How to read NOR flash register via IFC bus in u-boot (LS1021A )

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

How to read NOR flash register via IFC bus in u-boot (LS1021A )

跳至解决方案
1,797 次查看
winstonjacob
Contributor IV

I am working with ls1021a, which is having NOR(IS29GL256) flash connected via IFC bus, I want to read the device ID, is their any command or other way to read the register(device ID) in u-boot, please suggest me to get this.

 

Regards

Winston.

0 项奖励
1 解答
1,766 次查看
winstonjacob
Contributor IV

Thanks  for your immediate reply, @ufedor  that is working properly in LS1021ATWR board.

Regards

Winston

在原帖中查看解决方案

0 项奖励
4 回复数
1,788 次查看
ufedor
NXP Employee
NXP Employee

For 16-bit NOR Flash it is possible to use the following sequence of U-Boot commands to read Device ID (example is for the JS28F00 and the IFC Flash chip-select base address 0xe8000000):

=> mw.w e8000AAA aa;mw.w e8000554 55; mw.w e8000AAA 90;md.w e8000002 1;md.w e800001c 1;md.w e800001e 1
e8000002: 227e "~
e800001c: 2228 "(
e800001e: 2201 ".
=>

0 项奖励
1,777 次查看
winstonjacob
Contributor IV

Thanks for your reply @ufedor,

              I tried with the same command for my EVK (LS1021ATWR) board, I am getting on FFFF and here my NOR flash is MT28EW01GABA.

=> mw.w 60000554 aa;mw.w 600002AA 55; mw.w 60000554 90;md.w 60000002 1;md.w 6000000e 1
60000002: ffff ..
6000000e: ffff ..
=>

I am not getting the proper result, so please help me to resolve this issue

Regards

Winston

0 项奖励
1,769 次查看
ufedor
NXP Employee
NXP Employee

On the TWR board:

=> mw.w 60000AAA aa00;mw.w 60000554 5500; mw.w 60000AAA 9000;md.w 60000002 1;md.w 6000001c 1;md.w 6000001e 1

60000002: 7e22                                       "~

6000001c: 2822                                       "(

6000001e: 0122                                       ".

0 项奖励
1,767 次查看
winstonjacob
Contributor IV

Thanks  for your immediate reply, @ufedor  that is working properly in LS1021ATWR board.

Regards

Winston

0 项奖励