Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: AT91sam9xe512 -- nor flash access -- problem
PostPosted: Mon Jun 13, 2011 10:43 am 
Offline

Joined: Mon Jun 13, 2011 10:23 am
Posts: 1
Hi

We have developed a custom board with atmel at91sam9xe512 chip. We have connected a nor flash chip to atmel in NCS0. The nor flash chip is Spansion S29GL512P. Nor flash ready/busy signal is connected to fpga and iam driving it as '1'. Reset signal is connected to fpga and iam driving it as '1'.

I have loaded the applet of norflash using sam-ba-2.10. If I execute the command Enable norflash Iam getting the following messages
-I- -- Compiled: Jun 9 2011 16:18:15 --
-I- INIT command
-I- Common Flash Interface detecting...
-I- Try bus width 8 bits
-I- Try bus width 16 bits
-I- Try bus width 32 bits
-I- Device Unknown
-I- End of applet (command : 0 --- status : 1)

Iam getting the message device unknown
If I try to read the content of 0x10000000 of norflash Iam getting all zero's

I have tried the following settings in the SMC registers also

AT91C_BASE_SMC->SMC_SETUP0 = 0x3f3f3f3f;
AT91C_BASE_SMC->SMC_PULSE0 = 0x7f7f7f7f;
AT91C_BASE_SMC->SMC_CYCLE0 = 0x01ff01ff;
AT91C_BASE_SMC->SMC_CTRL0 = 0x000f1003;

or

AT91C_BASE_SMC->SMC_SETUP0 = 0x0a0a0a0a;
AT91C_BASE_SMC->SMC_PULSE0 = 0x0b0b0b0b;
AT91C_BASE_SMC->SMC_CYCLE0 = 0x00160016;
AT91C_BASE_SMC->SMC_CTRL0 = 0x00161003;
or
AT91C_BASE_SMC->SMC_SETUP0 = 0x00000002;
AT91C_BASE_SMC->SMC_PULSE0 = 0x0A0A0A06;
AT91C_BASE_SMC->SMC_CYCLE0 = 0x000A000A;
AT91C_BASE_SMC->SMC_CTRL0 = (AT91C_SMC_READMODE|AT91C_SMC_WRITEMODE
| AT91C_SMC_NWAITM_NWAIT_DISABLE
| ((0x1 << 16) & AT91C_SMC_TDF));

In all the above three cases i could not access the nor flash
Please help me to resolve this issue

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: