Hello Minal Nemade,
Please refer to the following QSPI related registers definition in CodeWarrior initialization file for LS1012ARDB.
You could modify CodeWarrior initialization file from Run->Debug Configurations->GDB hardware debugging->Debugger->Configure Target Connection, duplicate LS1012A_RDB and double click LS1012A_RDB(1) to edit it.
if QSPI_NAND:
CCSR_BE_M(0x157015C, 0x50100000)
else:
CCSR_BE_M(0x157015C, 0x40100000)
# QuadSPI_MCR - disable device clocks
CCSR_BE_M(0x1550000, 0x000F4004)
# SMPR
CCSR_BE_M(0x1550108, 0x00000000)
# QuadSPI_FLSHCR
CCSR_BE_M(0x155000C, 0x00000303)
# Set top address for each device
if QSPI_NAND:
CCSR_BE_M(0x1550180, 0x42000000)
CCSR_BE_M(0x1550184, 0x42000000)
CCSR_BE_M(0x1550188, 0x44000000)
CCSR_BE_M(0x155018C, 0x44000000)
else:
CCSR_BE_M(0x1550180, 0x44000000)
CCSR_BE_M(0x1550184, 0x48000000)
CCSR_BE_M(0x1550188, 0x4C000000)
CCSR_BE_M(0x155018C, 0x50000000)
# BUF0CR
CCSR_BE_M(0x1550010, 0x00000000)
# BUF3CR
CCSR_BE_M(0x155001C, 0x80000000)
# BFGENCR
CCSR_BE_M(0x1550020, 0x00000000)
# QuadSPI_MCR - enable device clocks
CCSR_BE_M(0x1550000, 0x000f0004)
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------