Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    68

    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

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,737
    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!

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    68
    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.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,737
    Quote Originally Posted by steffi View Post
    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-8 ).I also want to read a file from sd card.
    So, that's an ARM processor board? How do you communicate with it?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #5
    Just Joined!
    Join Date
    Nov 2011
    Posts
    68
    Ya its an ARM processor board. With UART we are communicating to the board.

  7. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,737
    Quote Originally Posted by steffi View Post
    Ya its an ARM processor board. With UART we are communicating to the board.
    Ok. As for writing directly to the flash, have you implemented, or usedd a jtag interface?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #7
    Just Joined!
    Join Date
    Nov 2011
    Posts
    68
    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??

    Thanks
    Last edited by steffi; 11-21-2011 at 07:20 AM.

  9. #8
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,737
    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!

  10. #9
    Just Joined!
    Join Date
    Nov 2011
    Posts
    68
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •