Hi,
I got Linux PSP 4.01.00.06 and there's NOR flash writer source code inside. I modified the writer on our custom board and it worked to write/read data to NOR flash, and the base address is 0x08000000 while the register GPMC_CONFIG7_i is set to 0x00000C48.
The source code was then added to our own code. Unfortunately, after GPMC initialized, the base address 0x08000000 can't be accessed. I've confirmed that CM_ALWON_GPMC_CLKCTRL (0x481815D0) and CM_ALWON_MCBSP_CLKCTRL (0x4818154C) were enabled. Could someone please help me?
Here're my GPMC register setting sequence and values which followed NOR-flash-writer:
GPMC_SYSCONFIG: 0x00000000
GPMC_IRQENABLE: 0x00000000
GPMC_TIMEOUT_CONTROL: 0x00000000
GPMC_CONFIG: 0x00000000
GPMC_CONFIG7_i: 0x00000000
GPMC_CONFIG1_i: 0x00001010
GPMC_CONFIG2_i: 0x00101080
GPMC_CONFIG3_i: 0x00020201
GPMC_CONFIG4_i: 0x0F031003
GPMC_CONFIG5_i: 0x000F1111
GPMC_CONFIG6_i: 0x0F030080
GPMC_CONFIG7_i: 0x00000C08
GPMC_CONFIG7_i: 0x00000C48
where i=0.
I also tried other base address and the problem still existed.
I found a phenomenon that when I set 0x00000C48 to GPMC_CONFIG7_i, the values of the register GPMC_NAND_COMMAND_i (0x5000007C), GPMC_NAND_ADDRESS_i (0x50000080) and GPMC_NAND_DATA_i (0x50000084) seemed what I set to NOR by NOR-flash-writer. Does it mean the base address is mapped to somewhere instead of 0x08000000?
Thanks.
Eric