Hi YiPing,
I still can not falsh image to NOR flash(flash timeout), but the earse action was success.
We using 8bit NOR flash, and check P1014RDB-PB_init_sram.tcl
Is there have problem with the code as below?
How to print reg value when tcl init?
# configure IFC controller
# Autodetect CS routing based on ROM_LOC
# bits 4-7 - ROM_LOC
# 1000 8-bit NAND?12b page size
# 1001 8-bit NAND?K page size
# 1010 8-bit NAND?K page size
# 1011 8-bit NOR
# 1100 16-bit NAND?12b page size
# 1101 16-bit NAND?K page size
# 1110 16-bit NAND?K page size
# 1111 16b NOR
# boot location is NAND => NAND - cS0, NOR - CS1
if {($ROM_LOC >= 0x8 && $ROM_LOC <= 0xA) || (($ROM_LOC >= 0xC && $ROM_LOC <= 0xE))} {
###########################
# CS0 - NAND Flash settings
# AMASK0 64k NAND Flash buffer size
mem [CCSR 0x1E0A0] = 0xFFFF0000
# CSOR0
mem [CCSR 0x1E130] = 0x00800000
#FTIM0_CS0
mem [CCSR 0x1E1C0] = 0x020C0405
#FTIM1_CS0
mem [CCSR 0x1E1C4] = 0x1D1D070C
#FTIM2_CS0
mem [CCSR 0x1E1C8] = 0x0180280F
#FTIM3_CS0
mem [CCSR 0x1E1CC] = 0x04000000
# CSPR0
mem [CCSR 0x1E010] = 0xEFA00083
##########################
# CS1 - NOR Flash settings
# AMASK1 32M NOR
mem [CCSR 0x1E0AC] = 0xFE000000
# CSOR1
mem [CCSR 0x1E13C] = 0x0000E00C
#FTIM0_CS1
mem [CCSR 0x1E1F0] = 0x10010012
#FTIM1_CS1
mem [CCSR 0x1E1F4] = 0x22000B0B
#FTIM2_CS1
mem [CCSR 0x1E1F8] = 0x01102024
#FTIM3_CS1
mem [CCSR 0x1E1FC] = 0x00000000
# CSPR1
mem [CCSR 0x1E01C] = 0xFE000101
} else {
##########################
# CS0 - NOR Flash settings
# AMASK0 32M NOR
mem [CCSR 0x1E0A0] = 0xFE000000
# CSOR0
mem [CCSR 0x1E130] = 0x0000E00C
#FTIM0_CS0
mem [CCSR 0x1E1C0] = 0x10010012
#FTIM1_CS0
mem [CCSR 0x1E1C4] = 0x22000B0B
#FTIM2_CS0
mem [CCSR 0x1E1C8] = 0x01102024
#FTIM3_CS0
mem [CCSR 0x1E1CC] = 0x00000000
# CSPR0
mem [CCSR 0x1E010] = 0xFE000101
###########################
# CS1 - NAND Flash settings
# AMASK1 64k NAND Flash buffer size
mem [CCSR 0x1E0AC] = 0xFFFF0000
# CSOR1
mem [CCSR 0x1E13C] = 0x8180000C
#FTIM0_CS1
mem [CCSR 0x1E1F0] = 0x020C0405
#FTIM1_CS1
mem [CCSR 0x1E1F4] = 0x1D1D070C
#FTIM2_CS1
mem [CCSR 0x1E1F8] = 0x0180280F
#FTIM3_CS1
mem [CCSR 0x1E1FC] = 0x04000000
# CSPR1
mem [CCSR 0x1E01C] = 0xEFA00083
}
Are there other possible reasons for flash timeout?