Results 1 to 9 of 9
hi,
can anyone tel me tat how to write a c pgm to read and write a file to NAND Flash??
Thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-14-2011 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 67
how to read and write files to NAND flash of IPNC_DM355
hi,
can anyone tel me tat how to write a c pgm to read and write a file to NAND Flash??
Thanks
- 11-18-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,141
Please elaborate? Where is the NAND flash located - on a local PC, or on an embedded system board? If on an embedded system board, how are you connected to the board, and is the board already running an OS, or are you trying to bootstrap it?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 11-21-2011 #3Just Joined!
- Join Date
- Nov 2011
- Posts
- 67
actually flash memory is in the leopard board .Leopard board(TMS320Dm355) having the kernel montavista linux 2.6.10 and host is using ubuntu( kernel is 2.6.38-
.I also want to read a file from sd card.
- 11-21-2011 #4
- 11-21-2011 #5Just Joined!
- Join Date
- Nov 2011
- Posts
- 67
Ya its an ARM processor board. With UART we are communicating to the board.
- 11-21-2011 #6
- 11-21-2011 #7Just Joined!
- Join Date
- Nov 2011
- Posts
- 67
No we didn use jtag. Actually i am new to this feild so i don have more idea about this.plz can u help me??
ThanksLast edited by steffi; 11-21-2011 at 06:20 AM.
- 11-21-2011 #8Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,141
Do you have any experience at all with embedded systems? What does the board/OS documentation say about accessing the flash and sd card? FWIW, the sd card should be mounted by the board's OS. What does the "mount" command (executed on the board's command line) show? Also, why can't you remove the sd card an connect it directly to your Ubuntu host system? If it is using a file system that Ubuntu doesn't support directly such as xfs or jfs, then you may need to install the appropriate drivers and support tools on the Ubuntu system. I've had to do that in the past in order to directly access the file system on the sd card for an embedded ARM board I work with.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 11-22-2011 #9Just Joined!
- Join Date
- Nov 2011
- Posts
- 67
No i don have any experience at all with embedde systems. They told me to write an application pgm which will be reading the file from sd card of the board. While inseting the sd card os will be mounting the card.when i gave mount option it will be showing that sd card is already mounted.
In doccumentation of sd card they have given as follows
Write
. The MMC/SD controller sends a write command to the card.
• The card receives the command and sends responses to the command.
• The MMC/SD controller sends a block of data to the card.
• The card sends the CRC status to the MMC/SD controller.
• The card sends a low BUSY bit until all the data has been programmed into the flash memory inside
the card
Read
. The MMC/SD controller sends a read command to the card.
• The card drives responses to the command.
• The card sends a block of data to the ARM.
Thanks


Reply With Quote

