[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Flash memory in microblaze Uclinux



I can erase the flash in less then a second time, is it normal, or too
fast? and after I write any thing in the flash, only FFFFFFFF can be
read, what should I set for the base address, should it follow the
C_BASE_ADDR or MEN0_BASE_ADDRESS from microblaze?

SKY


On Mon, 21 Mar 2005 09:44:54 +0100, Schunke Jan-Hendrik
<Schunke@shf-communication.de> wrote:
> Hi Sky,
> 
> The commands are writeen on the lower and upper byte:
> set FLASH_COMMAND_AA               0x00AA00AA
> 
> What happens when you try to write to the flash? Remember that you can only turn 1 into 0 when writing to flash.
> Please try to earse the flash and try to write 0x1234cafe to the first memory location of the flash and tell me what you read back.
> 
> Jan
> 
> > -----Ursprüngliche Nachricht-----
> > Von: owner-microblaze-uclinux@itee.uq.edu.au
> > [mailto:owner-microblaze-uclinux@itee.uq.edu.au] Im Auftrag
> > von sky sky
> > Gesendet: Montag, 21. März 2005 08:46
> > An: microblaze-uclinux@itee.uq.edu.au
> > Betreff: Re: [microblaze-uclinux] Flash memory in microblaze Uclinux
> >
> >
> > Hi,
> > I have change my flash memory to x16 mode, do u have some
> > idea , what can I do to change the script so that I can use
> > it to write/erase the flash? The scripts are for x32 mode flash right?
> >
> > sky
> >
> >
> > On Fri, 18 Mar 2005 09:13:11 +0100, Schunke Jan-Hendrik
> > <Schunke@shf-communication.de> wrote:
> > > Ok sky,
> > >
> > > As far as I can see from a quick look at the datasheet for
> > AMD29LV320
> > > like flash programming in x8 Mode is quite different from x16 Mode.
> > > Looks like you have to write to a buffer first. I think you have to
> > > take a closer look at the datasheet and implement the programming
> > > sequence yourself. You can take the provided script as a starting
> > > point.
> > >
> > > The EDK itself provides a flash programing tool with source
> > code under
> > > %EDK%/data/xmd/flashwriter/src but that works only for the
> > following
> > > modes:
> > >
> > > Embedded System Tools Reference Manual Page: 161
> > >
> > > Supported Flash Configurations
> > > Single 16-bit device forming a 16-bit data bus
> > > Paired 8-bit devices forming a 16-bit data bus
> > > Single 32-bit device forming a 32-bit data bus
> > > Paired 16-bit devices forming a 32-bit data bus
> > > Four 8-bit devices forming a 32-bit data bus
> > >
> > > Sorry, I do not have the time to give you further advice but I will
> > > try to answer any question that comes up on your way.
> > >
> > > Jan
> > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: owner-microblaze-uclinux@itee.uq.edu.au
> > > > [mailto:owner-microblaze-uclinux@itee.uq.edu.au] Im
> > Auftrag von sky
> > > > sky
> > > > Gesendet: Donnerstag, 17. März 2005 12:41
> > > > An: microblaze-uclinux@itee.uq.edu.au
> > > > Betreff: Re: [microblaze-uclinux] Flash memory in
> > microblaze Uclinux
> > > >
> > > >
> > > > hi,
> > > > thx for ur help, but I have no idea now to modify the
> > script for 8
> > > > bits mode, can you show me how to do so?
> > > >
> > > > thx
> > > > SKY
> > > >
> > > >
> > > > On Wed, 16 Mar 2005 13:35:28 +0100, Schunke Jan-Hendrik
> > > > <Schunke@shf-communication.de> wrote:
> > > > > Hi Sky,
> > > > >
> > > > > You have to "source" the xmdflash.tcl script. After you started
> > > > > xmd
> > > > > enter:
> > > > >
> > > > > XMD% source /path_to_script/xmdflash.tcl
> > > > >
> > > > > Press "fhelp" to get some information about the provided
> > > > commands. Set
> > > > > the base address of your flash memory controller (mine was
> > > > > 0x81800000):
> > > > >
> > > > > XMD% base 0x81800000
> > > > >
> > > > > Then try to earse the whole chip
> > > > >
> > > > > XMD% face
> > > > >
> > > > > Then you can try to write:
> > > > >
> > > > > %XMD fmwr 0x81800000 0xdeadc0de
> > > > >
> > > > > Then try to read
> > > > >
> > > > > %XMD fmrd 0x81800000
> > > > >
> > > > > You might have to change the defines at the start of the
> > > > script for 8
> > > > > Bit mode:
> > > > >
> > > > > -- snip --
> > > > >
> > > > > # = 555 shifted by  2 bit because lower 2 address lines are not
> > > > > connected (Word Access Mode) set FLASH_COMMAND_ADDR_555 [expr
> > > > > $FLASH_BASEADDR + 0x01554] # = 2AA shifted by  2 bit
> > > > because lower 2
> > > > > address lines are not connected (Word Access Mode) set
> > > > FLASH_COMMAND_ADDR_2AA [expr $FLASH_BASEADDR + 0x0aa8]
> > > > > set FLASH_COMMAND_AA               0x00AA00AA
> > > > > set FLASH_COMMAND_55               0x00550055
> > > > > set FLASH_COMMAND_READ_RESET       0x00F000F0
> > > > > set FLASH_COMMAND_ERASE            0x00800080
> > > > > set FLASH_COMMAND_AUTO_CHIP_ERASE  0x00100010
> > > > > set FLASH_COMMAND_AUTO_BLOCK_ERASE 0x00300030
> > > > > set FLASH_COMMAND_AUTO_PROGRAM     0x00A000A0
> > > > > set FLASH_DQ7                      0x00800080
> > > > > set FLASH_DQ5                      0x00200020
> > > > >
> > > > > -- snip --
> > > > >
> > > > > Hope that helps
> > > > >
> > > > > Jan
> > > > >
> > > > > > -----Ursprüngliche Nachricht-----
> > > > > > Von: owner-microblaze-uclinux@itee.uq.edu.au
> > > > > > [mailto:owner-microblaze-uclinux@itee.uq.edu.au] Im
> > > > Auftrag von sky
> > > > > > sky
> > > > > > Gesendet: Dienstag, 15. März 2005 20:20
> > > > > > An: microblaze-uclinux@itee.uq.edu.au
> > > > > > Betreff: Re: [microblaze-uclinux] Flash memory in
> > > > microblaze Uclinux
> > > > > >
> > > > > >
> > > > > > hi jan,
> > > > > >
> > > > > > Yeah, the DQ15  will select LSB in x8 mode. How can I use the
> > > > > > two file that u have gave me to check the flash chip, in xmd?
> > > > > >
> > > > > > SKY
> > > > > >
> > > > > >
> > > > > > On Tue, 15 Mar 2005 09:21:31 +0100, Schunke Jan-Hendrik
> > > > > > <Schunke@shf-communication.de> wrote:
> > > > > > > Hi Sky,
> > > > > > >
> > > > > > > A long time ago I wrote some tcl tools to write to flash
> > > > > > using xmd. If
> > > > > > > you want to verify your flash is working it might be a
> > > > good idea
> > > > > > > to check out
> > > > > > >
> > > > > > >
> > > > > >
> > > >
> > http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux/Downloads/_files
> > > > > > /f
> > > > > > > lashtools.tar.gz
> > > > > > >
> > > > > > > This is for AMD like flashes but I guess the M29W320 DT
> > > > should be
> > > > > > > compatible. For AMD flash D15 is used as an extra address
> > > > > > (A-1, LSB)
> > > > > > > in x8 mode. Is that connected right?
> > > > > > >
> > > > > > > You might need to change the above flashtools because of x8
> > > > > > mode but
> > > > > > > that should be quite simple.
> > > > > > >
> > > > > > > Jan
> > > > > > >
> > > > > > > > -----Ursprüngliche Nachricht-----
> > > > > > > > Von: owner-microblaze-uclinux@itee.uq.edu.au
> > > > > > > > [mailto:owner-microblaze-uclinux@itee.uq.edu.au] Im
> > > > > > Auftrag von sky
> > > > > > > > tam
> > > > > > > > Gesendet: Dienstag, 15. März 2005 05:56
> > > > > > > > An: microblaze-uclinux@itee.uq.edu.au
> > > > > > > > Betreff: Re: [microblaze-uclinux] Flash memory in
> > > > > > microblaze Uclinux
> > > > > > > >
> > > > > > > >
> > > > > > > > Hi Steve,
> > > > > > > >
> > > > > > > > The flash that I am using is from ST, it is M29W320DT, I
> > > > > > > > have connect it as x8. How can u check whether
> > the flash is
> > > > > > working. is
> > > > > > > > there any read/write method to check it? can u tell me
> > > > > > which files
> > > > > > > > in MBvanilia are need to modify for flash.
> > > > > > > >
> > > > > > > > thx
> > > > > > > > SKY
> > > > > > > >
> > > > > > > >
> > > > > > > > On Mon, 14 Mar 2005 09:34:25 -0800 (PST), Steve Sanders
> > > > > > > > <akasanders@yahoo.com> wrote:
> > > > > > > > >
> > > > > > > > > Can you provide some detail about the type of flash
> > > > > > you're using
> > > > > > > > > (e.g., AMD, Intel, etc.) and how it is connected (e.g.,
> > > > > > > > > x8,
> > > > > > > > x16, x32)?
> > > > > > > > > Just went through this yesterday for a Virtex 4 board
> > > > > > and got it
> > > > > > > > > working OK...  You may need to change the bus width
> > > > expected
> > > > > > > > > in the MBVanilla flash probe to match your
> > board.  We also
> > > > > > > > > removed the "JEDEC" configuration option(s) from the OS
> > > > > > > > > config.  Wasn't
> > > > > > > > needed for
> > > > > > > > > probing Intel Strataflash.
> > > > > > > > >
> > > > > > > > > Steve
> > > > > > > > >
> > > > > > > > > --- sky tam <waimingsky1@gmail.com> wrote:
> > > > > > > > > > Hi,
> > > > > > > > > >
> > > > > > > > > > I am using uClinux on microblaze, I am trying to
> > > > add a flash
> > > > > > > > > > chip memory to my system to make it portable from
> > > > everytime
> > > > > > > > downloading
> > > > > > > > > > kernel into my system. From john website, the
> > > > flash part is
> > > > > > > > > > still underconstruction, so is there anyone
> > successfully
> > > > > > > > > > integrated a flash into your system?
> > > > > > > > > >
> > > > > > > > > > I tried to read some value out from my flash chip, by
> > > > > > using "mrd
> > > > > > > > > > 0xff000000" in XMD (0xff000000 is my flash base
> > > > > > address) , there
> > > > > > > > > > were FFFFFFFF comming out. is it alright?
> > When I plot a
> > > > > > > > uClinux into
> > > > > > > > > > my system, something like this:
> > > > > > > > > >
> > > > > > > > > > MBVanilla flash probe(0xff000000,8388608,4): 800000
> > > > > > at ff000000
> > > > > > > > > > CFI: Found no Flash device at location zero
> > Search for
> > > > > > > > > > id:(ffff ffff) interleave(2) type(2)
> > > > Search for
> > > > > > > > > > id:(ffff ffff) interleave(2) type(2) Search
> > for id:(ffff
> > > > > > > > > > ffff) interleave(2) type(2) Search for id:(ff ff)
> > > > > > > > > > interleave(2) type(1) Search for id:(ff ff)
> > > > > > > > > > interleave(2)
> > > > > > > > > > type(1) Search for id:(ff ff) interleave(2) type(1)
> > > > > > > > > > Search for id:(ffff ffff) interleave(4) type(2)
> > > > > > > > > > Search for id:(ffff ffff) interleave(4) type(2)
> > > > > > > > > > Search for id:(ffff ffff) interleave(4) type(2)
> > > > > > > > > > Search for id:(ff ff) interleave(4) type(1)
> > > > > > > > > > Search for id:(ff ff) interleave(4) type(1)
> > > > > > > > > > Search for id:(ff ff) interleave(4) type(1)
> > > > > > > > > > JEDEC: Found no Flash device at location zero
> > > > > > > > > > MBVanilla ram probe(0x80176754,634880,4): 9b000 at
> > > > > > > > 80176754 Creating
> > > > > > > > > > 1 MTD partitions on "RAM": 0x00000000-0x0009b000 :
> > > > > > > > > > "Romfs"
> > > > > > > > > >
> > > > > > > > > > does it mean, found flash or not??
> > > > > > > > > > how can I check the flash chip avaliability under
> > > > uClinux??
> > > > > > > > > >
> > > > > > > > > > thx
> > > > > > > > > > SKY
> > > > > > > > > > ___________________________
> > > > > > > > > > microblaze-uclinux mailing list
> > > > > > > > > > microblaze-uclinux@itee.uq.edu.au Project Home Page :
> > > > > > > > > > http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> > > > > > > > > > Mailing List Archive :
> > > > > > > > > >
> > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > ___________________________
> > > > > > > > > microblaze-uclinux mailing list
> > > > > > microblaze-uclinux@itee.uq.edu.au
> > > > > > > > > Project Home Page :
> > > > > > > > http://www.itee.uq.edu.au/> ~jwilliams/mblaze-uclinux
> > > > > > > > > Mailing
> > > > > > > > List Archive :
> > > > > > > > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> > > > > > > > >
> > > > > > > > >
> > > > > > > > ___________________________
> > > > > > > > microblaze-uclinux mailing list
> > > > > > > > microblaze-uclinux@itee.uq.edu.au Project Home Page :
> > > > > > > > http://www.itee.uq.edu.au/> ~jwilliams/mblaze-uclinux
> > > > > > > > Mailing List Archive :
> > > > > > > > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > This message has been scanned for viruses and dangerous
> > > > > > > > content by MailScanner, and is believed to be clean.
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > This message has been scanned for viruses and dangerous
> > > > > > > content by MailScanner, and is believed to be clean.
> > > > > > >
> > > > > > >
> > > > > > > ___________________________
> > > > > > > microblaze-uclinux mailing list
> > > > microblaze-uclinux@itee.uq.edu.au
> > > > > > > Project Home Page :
> > > > > > http://www.itee.uq.edu.au/> ~jwilliams/mblaze-uclinux
> > > > > > > Mailing
> > > > > > List Archive :
> > > > > > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > ___________________________
> > > > > > microblaze-uclinux mailing list
> > > > > > microblaze-uclinux@itee.uq.edu.au Project Home Page :
> > > > > > http://www.itee.uq.edu.au/> ~jwilliams/mblaze-uclinux Mailing
> > > > > > List Archive :
> > > > > > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > This message has been scanned for viruses and
> > > > > > dangerous content by MailScanner, and is
> > > > > > believed to be clean.
> > > > > >
> > > > > >
> > > > >
> > > > > --
> > > > > This message has been scanned for viruses and
> > > > > dangerous content by MailScanner, and is
> > > > > believed to be clean.
> > > > >
> > > > > ___________________________
> > > > > microblaze-uclinux mailing list
> > microblaze-uclinux@itee.uq.edu.au
> > > > > Project Home Page :
> > > > http://www.itee.uq.edu.au/> ~jwilliams/mblaze-uclinux
> > > > > Mailing
> > > > List Archive :
> > > > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> > > > >
> > > > >
> > > >
> > > > ___________________________
> > > > microblaze-uclinux mailing list microblaze-uclinux@itee.uq.edu.au
> > > > Project Home Page :
> > > > http://www.itee.uq.edu.au/> ~jwilliams/mblaze-uclinux
> > > > Mailing
> > > > List Archive :
> > > > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> > > >
> > > >
> > > >
> > > > --
> > > > This message has been scanned for viruses and
> > > > dangerous content by MailScanner, and is
> > > > believed to be clean.
> > > >
> > > >
> > >
> > > --
> > > This message has been scanned for viruses and
> > > dangerous content by MailScanner, and is
> > > believed to be clean.
> > >
> > > ___________________________
> > > microblaze-uclinux mailing list
> > > microblaze-uclinux@itee.uq.edu.au
> > > Project Home Page :
> > http://www.itee.uq.edu.au/> ~jwilliams/mblaze-uclinux
> > > Mailing
> > List Archive :
> > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> > >
> > >
> >
> > ___________________________
> > microblaze-uclinux mailing list
> > microblaze-uclinux@itee.uq.edu.au
> > Project Home Page :
> > http://www.itee.uq.edu.au/> ~jwilliams/mblaze-uclinux
> > Mailing
> > List Archive :
> > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> >
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> >
> 
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@itee.uq.edu.au
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> 
>

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/