UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Observer liup1990
Observer
479 次查看
注册日期: ‎06-15-2018

zynq7020 nand擦除与读写问题

转到解答

大家好:

       我在ZYNQ XC7z020平台上使用nand flash时遇到一个问题,uboot可以初始化nand flash(型号为:Spansion S34ML01G100TFI00),但是无法擦除与读写,使用uboot命令对其读写或者擦除,程序立刻就卡死了

微信图片_20190107101653.png

设备树:


memory-controller@e000e000 {
#address-cells = <0x1>;
#size-cells = <0x1>;
status = "okay";
clock-names = "memclk", "aclk";
clocks = <0x1 0xb 0x1 0x2c>;
compatible = "arm,pl353-smc-r2p1";
interrupt-parent = <0x4>;
interrupts = <0x0 0x12 0x4>;
ranges;
reg = <0xe000e000 0x1000>;

flash@e1000000 {
status = "okay";
compatible = "arm,pl353-nand-r2p1";
reg = <0xe1000000 0x1000000>;
#address-cells = <0x1>;
#size-cells = <0x1>;
arm,nand-cycle-t0 = <0x4>;
arm,nand-cycle-t1 = <0x4>;
arm,nand-cycle-t2 = <0x1>;
arm,nand-cycle-t3 = <0x2>;
arm,nand-cycle-t4 = <0x2>;
arm,nand-cycle-t5 = <0x2>;
arm,nand-cycle-t6 = <0x4>;
nand-width = <0x8>;

partition@0 {
label = "boot-bin";
reg = <0x0 0x500000>;
};

partition@1 {
label = "kernel";
reg = <0xf00000 0xa00000>;
};

partition@2 {
label = "ramdisk";
reg = <0x2300000 0xa00000>;
};

partition@3 {
label = "devicetree";
reg = <0x3700000 0x500000>;
};
};

flash@e2000000 {
status = "disabled";
compatible = "cfi-flash";
reg = <0xe2000000 0x2000000>;
#address-cells = <0x1>;
#size-cells = <0x1>;
};
};

0 项奖励
1 个已接受解答

已接受的解答
Observer liup1990
Observer
434 次查看
注册日期: ‎06-15-2018

回复: zynq7020 nand擦除与读写问题

转到解答
问题已解决,更换uboot版本为2017.2,2017.1版本对Spansion S34ML01G1 的支持存在bug,但是对镁光MT29F4GxxAxxDxxx完美支持.
0 项奖励
2 条回复2
Observer liup1990
Observer
450 次查看
注册日期: ‎06-15-2018

回复: zynq7020 nand擦除与读写问题

转到解答
进一步分析,zynq_nand_cmd_function()调用writel()将0x2000800写入地址0xe1b18000时,系统挂了
0 项奖励
Observer liup1990
Observer
435 次查看
注册日期: ‎06-15-2018

回复: zynq7020 nand擦除与读写问题

转到解答
问题已解决,更换uboot版本为2017.2,2017.1版本对Spansion S34ML01G1 的支持存在bug,但是对镁光MT29F4GxxAxxDxxx完美支持.
0 项奖励