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  [ 2 posts ] 
Author Message
 Post subject: Starting with Software Package (rev. 1.4 ) and NAND flash.
PostPosted: Tue Jun 24, 2008 1:57 pm 
Offline

Joined: Mon Jan 07, 2008 1:14 pm
Posts: 8
Location: Denmark
Hi

I would like to welcome the new AT91SAM7SE-EK Software Package Software (revision 1.4). It is a great package of software drivers and libraries. The code looks excellent and is well structured.


I have one problem with the "basic-nandflash-project" I am trying to change the code to support another NAND flash than in the Evaluation Kit.

What is needed to customize the nandflash-project?

I have already customized the pins to reflect my settings, but it seems more is needed.

- Basic NandFlash Project 1.4 --
Nandflash ID is 0x76207620
-I- Nandflash driver initialized
-I- Size of the whole device in bytes : 0x4000000
-I- Size in bytes of one single block of a device : 0x4000
-I- Number of blocks in the entire device : 0x1000
-I- Size of the data area of a page in bytes : 0x200
-I- Number of pages in the entire device : 0x20
-I- Bud width : 0x8
-I- Test in progress on block: 0
EccNandFlash_ReadPage: Unrecoverable data
SkipBlockNandFlash_ReadBlock: Cannot read page 0 of block 0.
-E- Could not erase block 0
EccNandFlash_ReadPage: Unrecoverable data
SkipBlockNandFlash_ReadBlock: Cannot read page 0 of block 0.
-E- Could not write block 0
-E- Test failed.


Top
 Profile  
 
 Post subject: Error in Package Software (revision 1.4).
PostPosted: Wed Jun 25, 2008 12:28 pm 
Offline

Joined: Mon Jan 07, 2008 1:14 pm
Posts: 8
Location: Denmark
I have found the problem with Package Software (revision 1.4) and the support of NAND flash. The problem only conserns NAND flashes with small blocks.

In the library there is an unsigned char hasSmallBlocks. If hasSmallBlocks is true, then COMMAND_READ_1 and COMMAN_READ_2 are replaced by COMMMAND_READ_A and COMMAND_READ_C.

The problem is that to support flashes with small blocks (hasSmallBlocks == TRUE) COMMAND_READ_B also needs to be defined. This is not done the library. This sould be corrected in RawNandFlash.c .


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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: