2019-04-05 09:14 PM
I want port U-Boot to my own board with stm23f767;Now I stock with FMC Nand Flash driver;there is a MT29F4G08ABADA on my board;when i set FMC nand register,i think this will be ok;but i'm wrong;i still could not get the nand id;when i debug under U-Boot with md command to see some register,i'm confused with get different value as:
YYFISH > md 0x80000000 16
80000000: c0c0c0c0 c0c0c0c0 c0c0c0c0 98989898 ................
80000010: 1e1e1e1e fdfdfdfd 98989898 fdfdfdfd ................
80000020: 1e1e1e1e 98989898 fdfdfdfd 98989898 ................
80000030: 00000000 98989898 98989898 98989898 ................
80000040: 00000000 fdfdfdfd fdfdfdfd 98989898 ................
80000050: 1a1a1a1a fdfdfdfd ........
YYFISH > md 0x80000000 16
80000000: c0c0c0c0 c0c0c0c0 cececece fdfdfdfd ................
80000010: 5f5f5f5f fdfdfdfd fdfdfdfd fdfdfdfd ____............
80000020: 0a0a0a0a fdfdfdfd 98989898 fdfdfdfd ................
80000030: 00000000 fdfdfdfd fdfdfdfd fdfdfdfd ................
80000040: 1a1a1a1a 98989898 01010101 98989898 ................
80000050: fdfdfdfd fdfdfdfd ........
YYFISH > md 0x80000000 16
80000000: c0c0c0c0 14141414 fdfdfdfd cececece ................
80000010: acacacac 98989898 fdfdfdfd 98989898 ................
80000020: acacacac fdfdfdfd 98989898 fdfdfdfd ................
80000030: 00000000 98989898 98989898 98989898 ................
80000040: 04040404 fdfdfdfd 98989898 fdfdfdfd ................
80000050: 04040404 98989898
==========================================================
I get the fmc nand reigster value as:
YYFISH > md 0xa0000080
a0000080: 0001540c 00000040 02020602 fcfcfcfc .T..@...........
a0000090: 00000000 00000000 00000000 00000000 ................
a00000a0: 00000000 00000000 00000000 00000000 ................
a00000b0: 00000000 00000000 00000000 00000000 ................
a00000c0: 00000000 00000000 00000000 00000000 ................
a00000d0: 00000000 00000000 ........
where is the problem ?
my source code is on https://github.com/iysheng/yyfish2