cpu :am3354
nor flash:S70GL02GS12FHI010 (256MB)
Asynchronous Single-Read /write Operation on an Address/Data Multiplexed Device.
I am using AM3354 processor & connecting it to NOR flash of Multiplexed address data 16bit.
Now, The CPU in the uboot code cannot get flash ID.
Stuck happens when the CPU to send flash orders.
For example:
/* Example: CFI Entry command */
*( (UINT16 *)base_addr + 0x55 ) = 0x0098; /* write CFI entry command */
/* Example: CFI Exit command */
*( (UINT16 *)base_addr + 0x000 ) = 0x00F0; /* write cfi exit command */
CFI Entry command is stop.
And no lower cs0(CE#) signal.
I know this kind of phenomenon is not right.
My configuration:
Chip-select base address = 0x2000000
#define CONFIG_SYS_FLASH_BASE 0x2000000 /*SA*/
#define STNOR_GPMC_CONFIG1 0x00001200 ; DEVICESIZE = 1h , DEVICETYPE = 0h , MUXADDDATA=2h
#define STNOR_GPMC_CONFIG2 0x000A0F01
#define STNOR_GPMC_CONFIG3 0x00030301
#define STNOR_GPMC_CONFIG4 0x0A030F0A
#define STNOR_GPMC_CONFIG5 0x000A0A0F
#define STNOR_GPMC_CONFIG6 0x05040280
#define STNOR_GPMC_CONFIG7 0x00000042 //base addr = 0x2, MASKADDRESS= 0x0 /*256MB*/
Now I don't know why I can't get FLASH ID.
I think is a problem of flash address configuration, but I'm not sure.